]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
timer: kernel/timer.c section fixes
authorAdrian Bunk <bunk@kernel.org>
Tue, 18 Dec 2007 17:05:58 +0000 (18:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 18 Dec 2007 17:05:58 +0000 (18:05 +0100)
This patch fixes the following section mismatches with CONFIG_HOTPLUG=n,
CONFIG_HOTPLUG_CPU=y:

...
WARNING: vmlinux.o(.text+0x41cd3): Section mismatch: reference to .init.data:tvec_base_done.22610 (between 'timer_cpu_notify' and 'run_timer_softirq')
WARNING: vmlinux.o(.text+0x41d67): Section mismatch: reference to .init.data:tvec_base_done.22610 (between 'timer_cpu_notify' and 'run_timer_softirq')
...

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/timer.c

index a05817c021d62c1f93819ee666f2fc5bdb735f6a..d4527dcef1af8b325115ad37adb1b034a199d7b3 100644 (file)
@@ -1219,11 +1219,11 @@ asmlinkage long sys_sysinfo(struct sysinfo __user *info)
  */
 static struct lock_class_key base_lock_keys[NR_CPUS];
 
-static int __devinit init_timers_cpu(int cpu)
+static int __cpuinit init_timers_cpu(int cpu)
 {
        int j;
        tvec_base_t *base;
-       static char __devinitdata tvec_base_done[NR_CPUS];
+       static char __cpuinitdata tvec_base_done[NR_CPUS];
 
        if (!tvec_base_done[cpu]) {
                static char boot_done;