diff options
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 450a841b5892..23932d7741a9 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -32,12 +32,24 @@ | |||
32 | * CPUFREQ NOTIFIER INTERFACE * | 32 | * CPUFREQ NOTIFIER INTERFACE * |
33 | *********************************************************************/ | 33 | *********************************************************************/ |
34 | 34 | ||
35 | int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); | ||
36 | int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); | ||
37 | |||
38 | #define CPUFREQ_TRANSITION_NOTIFIER (0) | 35 | #define CPUFREQ_TRANSITION_NOTIFIER (0) |
39 | #define CPUFREQ_POLICY_NOTIFIER (1) | 36 | #define CPUFREQ_POLICY_NOTIFIER (1) |
40 | 37 | ||
38 | #ifdef CONFIG_CPU_FREQ | ||
39 | int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); | ||
40 | int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); | ||
41 | #else /* CONFIG_CPU_FREQ */ | ||
42 | static inline int cpufreq_register_notifier(struct notifier_block *nb, | ||
43 | unsigned int list) | ||
44 | { | ||
45 | return 0; | ||
46 | } | ||
47 | static inline int cpufreq_unregister_notifier(struct notifier_block *nb, | ||
48 | unsigned int list) | ||
49 | { | ||
50 | return 0; | ||
51 | } | ||
52 | #endif /* CONFIG_CPU_FREQ */ | ||
41 | 53 | ||
42 | /* if (cpufreq_driver->target) exists, the ->governor decides what frequency | 54 | /* if (cpufreq_driver->target) exists, the ->governor decides what frequency |
43 | * within the limits is used. If (cpufreq_driver->setpolicy> exists, these | 55 | * within the limits is used. If (cpufreq_driver->setpolicy> exists, these |