]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clocksource: Fix !CONFIG_CLOCKSOURCE_WATCHDOG compile
authorPrarit Bhargava <prarit@redhat.com>
Fri, 22 Feb 2013 20:08:56 +0000 (15:08 -0500)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 22 Jul 2013 23:00:17 +0000 (16:00 -0700)
If I explicitly disable the clocksource watchdog in the x86 Kconfig,
the x86 kernel will not compile unless this is properly defined.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86@kernel.org
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/clocksource.c

index 50a8736757f3b470c5d0d393be03cfbf05f5df03..a2e72b8d28d089fa433708620c81957764e4639c 100644 (file)
@@ -479,6 +479,7 @@ static inline void clocksource_dequeue_watchdog(struct clocksource *cs) { }
 static inline void clocksource_resume_watchdog(void) { }
 static inline int __clocksource_watchdog_kthread(void) { return 0; }
 static bool clocksource_is_watchdog(struct clocksource *cs) { return false; }
+void clocksource_mark_unstable(struct clocksource *cs) { }
 
 #endif /* CONFIG_CLOCKSOURCE_WATCHDOG */