get_cpu_freq()

Get the current CPU frequency, in Hertz

Synopsis:

#include <hw/dvfs_api.h>

uint32_t get_cpu_freq( void *handle );

Arguments:

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

Description:

The get_cpu_freq() function calculates the CPU frequency, based on System PLL frequency and the CPU divider.

Returns:

The CPU frequency (in Hz), or 0 in case of error.

Classification:

QNX Neutrino

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