MCPcopy Create free account
hub / github.com/F-Stack/f-stack / power_set_governor_userspace

Function power_set_governor_userspace

dpdk/lib/power/power_cppc_cpufreq.c:108–113  ·  view source on GitHub ↗

* It is to check the current scaling governor by reading sys file, and then * set it into 'userspace' if it is not by writing the sys file. The original * governor will be saved for rolling back. */

Source from the content-addressed store, hash-verified

106 * governor will be saved for rolling back.
107 */
108static int
109power_set_governor_userspace(struct cppc_power_info *pi)
110{
111 return power_set_governor(pi->lcore_id, POWER_GOVERNOR_USERSPACE,
112 pi->governor_ori, sizeof(pi->governor_ori));
113}
114
115static int
116power_check_turbo(struct cppc_power_info *pi)

Callers 1

power_cppc_cpufreq_initFunction · 0.70

Calls 1

power_set_governorFunction · 0.85

Tested by

no test coverage detected