PowerGetActive()
Query the kernel for a CPU's active frequency parameter
Synopsis:
#include <sys/neutrino.h>
int PowerGetActive(unsigned __cpu);
Arguments:
- cpu
- The CPU whose frequency you need to know.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The PowerGetActive() function queries the kernel for the specified CPU's active frequency.
Returns:
- >0
- Success. The ID of the power parameter with the specified CPU cluster's active frequency.
- -1
- An error occurred (errno is set).
- 0
- You called PowerGetActive() before calling PowerParameter() for a valid cluster, CPU, or frequency.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
Page updated:
