summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@debian.org>2008-02-09 23:24:08 +0100
committerThomas Gleixner <tglx@linutronix.de>2008-02-09 23:24:08 +0100
commitb0e6bf2571e9385335e6337bdedb85cb629ab3fb (patch)
tree52999d609c04fe64db926829f1d305e95c6a0341 /include
parent9501b2efd70ad3957a70d44de54dab7c52f9b882 (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 'include')
-rw-r--r--include/asm-x86/geode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-x86/geode.h b/include/asm-x86/geode.h
index c4482753a358..c13630655d62 100644
--- a/include/asm-x86/geode.h
+++ b/include/asm-x86/geode.h
@@ -214,4 +214,10 @@ extern int geode_mfgpt_alloc_timer(int timer, int domain);
#define geode_mfgpt_setup_irq(t, c, i) geode_mfgpt_set_irq((t), (c), (i), 1)
#define geode_mfgpt_release_irq(t, c, i) geode_mfgpt_set_irq((t), (c), (i), 0)
+#ifdef CONFIG_GEODE_MFGPT_TIMER
+extern int __init mfgpt_timer_setup(void);
+#else
+static inline int mfgpt_timer_setup(void) { return 0; }
+#endif
+
#endif