From: Satyam Sharma Callsites such as arch/powerpc/oprofile/op_model_cell.c are having to open-code #ifdef CONFIG_CPU_FREQ only to be able to get at the full definition of cpufreq_unregister_notifier(), because no empty stub is available for the !CONFIG_CPU_FREQ case. Let's provide one, to be able to remove such #ifdef's from the rest of the kernel tree -- those will come in a subsequent patch. Signed-off-by: Satyam Sharma Cc: Dave Jones Signed-off-by: Andrew Morton --- include/linux/cpufreq.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletion(-) diff -puN include/linux/cpufreq.h~cpufreq-implement-config_cpu_freq-stub-for include/linux/cpufreq.h --- a/include/linux/cpufreq.h~cpufreq-implement-config_cpu_freq-stub-for +++ a/include/linux/cpufreq.h @@ -34,14 +34,19 @@ #ifdef CONFIG_CPU_FREQ int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); +int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); #else static inline int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list) { return 0; } +static inline int cpufreq_unregister_notifier(struct notifier_block *nb, + unsigned int list) +{ + return 0; +} #endif -int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); #define CPUFREQ_TRANSITION_NOTIFIER (0) #define CPUFREQ_POLICY_NOTIFIER (1) _