diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-10-12 17:04:05 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@inhelltoy.tec.linutronix.de> | 2007-10-12 17:04:05 -0400 |
commit | de68d9b173ee657115dd0e584c2365b7954253a5 (patch) | |
tree | d2fec5a10dc4dcceb2f702832cb6080a2ec6ff0f /include | |
parent | 7f8033b76c8eea89dec9f658f4a31bcd4fe84bbb (diff) |
clockevents: Allow build w/o run-tine usage for migration purposes
Migration aid to allow preparatory patches which introduce not yet
used parts of clock events code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clockchips.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index f368a6fe8cc9..d2ddea926895 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h | |||
@@ -8,7 +8,7 @@ | |||
8 | #ifndef _LINUX_CLOCKCHIPS_H | 8 | #ifndef _LINUX_CLOCKCHIPS_H |
9 | #define _LINUX_CLOCKCHIPS_H | 9 | #define _LINUX_CLOCKCHIPS_H |
10 | 10 | ||
11 | #ifdef CONFIG_GENERIC_CLOCKEVENTS | 11 | #ifdef CONFIG_GENERIC_CLOCKEVENTS_BUILD |
12 | 12 | ||
13 | #include <linux/clocksource.h> | 13 | #include <linux/clocksource.h> |
14 | #include <linux/cpumask.h> | 14 | #include <linux/cpumask.h> |
@@ -126,9 +126,13 @@ extern int clockevents_register_notifier(struct notifier_block *nb); | |||
126 | extern int clockevents_program_event(struct clock_event_device *dev, | 126 | extern int clockevents_program_event(struct clock_event_device *dev, |
127 | ktime_t expires, ktime_t now); | 127 | ktime_t expires, ktime_t now); |
128 | 128 | ||
129 | #ifdef CONFIG_GENERIC_CLOCKEVENTS | ||
129 | extern void clockevents_notify(unsigned long reason, void *arg); | 130 | extern void clockevents_notify(unsigned long reason, void *arg); |
130 | |||
131 | #else | 131 | #else |
132 | # define clockevents_notify(reason, arg) do { } while (0) | ||
133 | #endif | ||
134 | |||
135 | #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */ | ||
132 | 136 | ||
133 | #define clockevents_notify(reason, arg) do { } while (0) | 137 | #define clockevents_notify(reason, arg) do { } while (0) |
134 | 138 | ||