get_pwr_levels_count()

Get the number of supported DVFS power levels

Synopsis:

#include <hw/dvfs_api.h>

int get_pwr_levels_count(void *handle );

Arguments:

handle
A pointer to the global Dynamic Voltage Frequency Scaling (DVFS) structure.

Description:

The get_pwr_levels_count() function returns the number of power levels allowed for a given SoC. This is to ensure the user-defined configuration file doesn't have more levels than allowed by the SoC.

Returns:

The number of power levels for the specific SoC.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes