diff options
author | Andres Salomon <dilinger@debian.org> | 2008-02-09 17:24:08 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-02-09 17:24:08 -0500 |
commit | b0e6bf2571e9385335e6337bdedb85cb629ab3fb (patch) | |
tree | 52999d609c04fe64db926829f1d305e95c6a0341 /arch/x86/kernel/mfgpt_32.c | |
parent | 9501b2efd70ad3957a70d44de54dab7c52f9b882 (diff) |
x86: GEODE: MFGPT: make mfgpt_timer_setup available outside of mfgpt_32.c
We need to be called from elsewhere, and this gets some #ifdefs out
of the .c file.
Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/mfgpt_32.c')
-rw-r--r-- | arch/x86/kernel/mfgpt_32.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/kernel/mfgpt_32.c b/arch/x86/kernel/mfgpt_32.c index 6f79061cf119..5cf3a839530c 100644 --- a/arch/x86/kernel/mfgpt_32.c +++ b/arch/x86/kernel/mfgpt_32.c | |||
@@ -43,12 +43,6 @@ static struct mfgpt_timer_t { | |||
43 | #define MFGPT_HZ (32768 / MFGPT_DIVISOR) | 43 | #define MFGPT_HZ (32768 / MFGPT_DIVISOR) |
44 | #define MFGPT_PERIODIC (MFGPT_HZ / HZ) | 44 | #define MFGPT_PERIODIC (MFGPT_HZ / HZ) |
45 | 45 | ||
46 | #ifdef CONFIG_GEODE_MFGPT_TIMER | ||
47 | static int __init mfgpt_timer_setup(void); | ||
48 | #else | ||
49 | #define mfgpt_timer_setup() (0) | ||
50 | #endif | ||
51 | |||
52 | /* Allow for disabling of MFGPTs */ | 46 | /* Allow for disabling of MFGPTs */ |
53 | static int disable; | 47 | static int disable; |
54 | static int __init mfgpt_disable(char *s) | 48 | static int __init mfgpt_disable(char *s) |
@@ -314,7 +308,7 @@ static struct irqaction mfgptirq = { | |||
314 | .name = "mfgpt-timer" | 308 | .name = "mfgpt-timer" |
315 | }; | 309 | }; |
316 | 310 | ||
317 | static int __init mfgpt_timer_setup(void) | 311 | int __init mfgpt_timer_setup(void) |
318 | { | 312 | { |
319 | int timer, ret; | 313 | int timer, ret; |
320 | u16 val; | 314 | u16 val; |