This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_cpu_set_governor

Function Documentation

int rc_cpu_set_governor(rc_governor_t gov)

Sets the CPU governor. See rc_governor_t.

This is the equivalent to running ‘cpufreq-set -g {governor}’ from the command line but can be called in your C program instead.

Parameters

gov[in] Desired governor

Returns

0 on success, -1 on failure.