android_kernel_xiaomi_sm8350/drivers/cpufreq
Sam Ravnborg f6ebef30e2 [CPUFREQ] fix section mismatch warnings
Fix the following warnings:
WARNING: vmlinux.o(.text+0xfe6711): Section mismatch in reference from the function cpufreq_unregister_driver() to the variable .cpuinit.data:cpufreq_cpu_notifier
WARNING: vmlinux.o(.text+0xfe68af): Section mismatch in reference from the function cpufreq_register_driver() to the variable .cpuinit.data:cpufreq_cpu_notifier
WARNING: vmlinux.o(.exit.text+0xc4fa): Section mismatch in reference from the function cpufreq_stats_exit() to the variable .cpuinit.data:cpufreq_stat_cpu_notifier

The warnings were casued by references to unregister_hotcpu_notifier()
from normal functions or exit functions.
This is flagged by modpost as a potential error because
it does not know that for the non HOTPLUG_CPU
scenario the unregister_hotcpu_notifier() is a nop.
Silence the warning by replacing the __initdata
annotation with a __refdata annotation.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Dave Jones <davej@codemonkey.org.uk>
2008-03-05 14:45:31 -05:00
..
cpufreq_conservative.c cpufreq: Initialise default governor before use 2008-01-17 15:38:58 -08:00
cpufreq_ondemand.c cpufreq: Initialise default governor before use 2008-01-17 15:38:58 -08:00
cpufreq_performance.c
cpufreq_powersave.c
cpufreq_stats.c [CPUFREQ] fix section mismatch warnings 2008-03-05 14:45:31 -05:00
cpufreq_userspace.c [CPUFREQ] Eliminate cpufreq_userspace scaling_setspeed deadlock 2008-02-06 22:57:58 -05:00
cpufreq.c [CPUFREQ] fix section mismatch warnings 2008-03-05 14:45:31 -05:00
freq_table.c [CPUFREQ] fix incorrect comment on show_available_freqs() in freq_table.c 2008-02-06 22:57:58 -05:00
Kconfig [CPUFREQ] fix configuration help message 2008-02-06 22:57:58 -05:00
Makefile