[patch 01/24] timers: Provide generic Kconfig switches

Anna-Maria Gleixner
2012-05-18T17:13:23Z

[-- Attachment #1: timers-add-generic-kconfig-options.patch --]
[-- Type: text/plain, Size: 1221 bytes --]

From: Thomas Gleixner <tglx@linutronix.de>

We really don't want all the arch code defining stuff
over and over.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Anna-Maria Gleixner <anna-maria@glx-um.de>
---
kernel/time/Kconfig | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Index: tip/kernel/time/Kconfig
===================================================================
--- tip.orig/kernel/time/Kconfig
+++ tip/kernel/time/Kconfig
@@ -33,3 +33,34 @@ config GENERIC_CLOCKEVENTS_BUILD

config GENERIC_CLOCKEVENTS_MIN_ADJUST
bool
+
+# Options selectable by arch Kconfig
+
+# Watchdog function for clocksources to detect instabilities
+config CLOCKSOURCE_WATCHDOG
+ bool
+
+# Architecture has extra clocksource data
+config ARCH_CLOCKSOURCE_DATA
+ bool
+
+# Timekeeping vsyscall support
+config GENERIC_TIME_VSYSCALL
+ bool
+
+# ktime_t scalar 64bit nsec representation
+config KTIME_SCALAR
+ bool
+
+# Old style timekeeping
+config ARCH_USES_GETTIMEOFFSET
+ bool
+
+# The generic clock events infrastructure
+config GENERIC_CLOCKEVENTS
+ bool
+
+# Clockevents broadcasting infrastructure
+config GENERIC_CLOCKEVENTS_BROADCAST
+ bool
+ depends on GENERIC_CLOCKEVENTS