set_cpu_freq()

Set the CPU frequency

Synopsis:

#include <hw/dvfs_api.h>

int set_cpu_freq( void *handle,
                  uint32_t freq );

Arguments:

handle
A pointer to the global Dynamic Voltage Frequency Scaling (DVFS) structure.
freq
The desired frequency (in Hz).

Description:

The set_cpu_freq() function is used to set the CPU frequency (in Hz). This function must ensure that the requested frequency doesn't exceed the maximum allowed frequency.

Returns:

EOK
Success.
EFAULT
An error occurred.

Classification:

QNX Neutrino

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