Skip to content

Commit

Permalink
[PATCH] i386: sched_clock using init data tsc_disable fix
Browse files Browse the repository at this point in the history
o sched_clock() a non-init function is using init data tsc_disable. This
  is flagged by MODPOST on i386 if CONFIG_RELOCATABLE=y

WARNING: vmlinux - Section mismatch: reference to .init.data:tsc_disable from .text between 'sched_clock' (at offset 0xc0109d58) and 'tsc_update_callback'

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Vivek Goyal authored and Linus Torvalds committed Jan 12, 2007
1 parent 9c61a44 commit 664c0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
unsigned int tsc_khz;

int tsc_disable __cpuinitdata = 0;
int tsc_disable;

#ifdef CONFIG_X86_TSC
static int __init tsc_setup(char *str)
Expand Down

0 comments on commit 664c0d3

Please sign in to comment.