Set the CPU frequency
#include <hw/dvfs_api.h>
int set_cpu_freq( void *handle,
uint32_t freq );
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.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |