Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_cpu.c
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
* Common CPU frequency glue code. Drivers for specific hardware can | * Common CPU frequency glue code. Drivers for specific hardware can | ||||
* attach this interface to allow users to get/set the CPU frequency. | * attach this interface to allow users to get/set the CPU frequency. | ||||
*/ | */ | ||||
/* | /* | ||||
* Number of levels we can handle. Levels are synthesized from settings | * Number of levels we can handle. Levels are synthesized from settings | ||||
* so for M settings and N drivers, there may be M*N levels. | * so for M settings and N drivers, there may be M*N levels. | ||||
*/ | */ | ||||
#define CF_MAX_LEVELS 64 | #define CF_MAX_LEVELS 256 | ||||
struct cf_saved_freq { | struct cf_saved_freq { | ||||
struct cf_level level; | struct cf_level level; | ||||
int priority; | int priority; | ||||
SLIST_ENTRY(cf_saved_freq) link; | SLIST_ENTRY(cf_saved_freq) link; | ||||
}; | }; | ||||
struct cpufreq_softc { | struct cpufreq_softc { | ||||
▲ Show 20 Lines • Show All 1,006 Lines • Show Last 20 Lines |