ppsm_get_cpufreq()

int ppsm_get_cpufreq( void *handle,
                      int cpu );

This function gets the current CPU frequency. The arguments are:

handle
The handle returned by ppsm_init().
cpu
The index of the CPU, in the range from 0 to the number of processors − 1.

The ppsm_get_cpufreq() function returns the current CPU frequency, in MHz, or -1 if an error occurred (e.g. the CPU index is out of range).