PowerSetActive()

Updated: April 19, 2023

Inform the kernel that the system has switched to a new active frequency

Synopsis:

#include <sys/neutrino.h>

int PowerSetActive(unsigned __id);

Arguments:

id
The ID of the frequency characteristics that were changed.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The PowerSetActive() function informs the kernel that the system has switched to a new active frequency.

You should call this function after you have called PowerParameter() with the nto_power_parameter data structure's parameter_type member set to _NTO_PPT_DEFINE_FREQ.

Returns:

>0
Success. The call returns the previous active ID for the CPU.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

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