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

Function raw_to_percent

freebsd/x86/cpufreq/hwpstate_intel.c:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static inline int
221raw_to_percent(int x)
222{
223 MPASS(x <= 0xff && x >= 0);
224 return (round10(x * 1000 / 0xff));
225}
226
227/* Range of MSR_IA32_ENERGY_PERF_BIAS is more limited: 0-0xf. */
228static inline int

Callers 1

sysctl_epp_selectFunction · 0.85

Calls 1

round10Function · 0.85

Tested by

no test coverage detected