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

Function cpufreq_get_frequency

freebsd/kern/kern_cpu.c:422–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422static int
423cpufreq_get_frequency(device_t dev)
424{
425 struct cf_setting set;
426
427 if (CPUFREQ_DRV_GET(dev, &set) != 0)
428 return (-1);
429
430 return (set.freq);
431}
432
433/* Returns the index into *levels with the match */
434static int

Callers 1

cpufreq_get_levelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected