set_cpu_voltage()

Set the CPU voltage (in uV)

Synopsis:

#include <hw/dvfs_api.h>

int set_cpu_voltage( void *handle,
                     uint32_t voltage );

Arguments:

handle
A pointer to the global Dynamic Voltage Frequency Scaling (DVFS) structure.
voltage
The desired voltage level (in uV).

Description:

The set_cpu_voltage() function is in charge of changing the CPU voltage to the desired level. This function must ensure that the voltage is within the allowed range.

Returns:

EOK
Success.
EFAULT
An error occurred.

Classification:

QNX Neutrino

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