2012-05-18 17:13:23

by Anna-Maria Gleixner

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

From: Thomas Gleixner <[email protected]>

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

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Anna-Maria Gleixner <[email protected]>
---
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


2012-05-18 23:14:52

by Paul Mundt

[permalink] [raw]
Subject: Re: [patch 01/24] timers: Provide generic Kconfig switches

On Fri, May 18, 2012 at 04:45:43PM -0000, Anna-Maria Gleixner wrote:
> +# 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
>
Looks like you've missed GENERIC_CMOS_UPDATE.

2012-05-20 15:59:53

by Anna-Maria Gleixner

[permalink] [raw]
Subject: Re: [patch 01/24] timers: Provide generic Kconfig switches

On Sat, 2012-05-19 at 08:14 +0900, Paul Mundt wrote:
> On Fri, May 18, 2012 at 04:45:43PM -0000, Anna-Maria Gleixner wrote:
> > +# Clockevents broadcasting infrastructure
> > +config GENERIC_CLOCKEVENTS_BROADCAST
> > + bool
> > + depends on GENERIC_CLOCKEVENTS
> >
> Looks like you've missed GENERIC_CMOS_UPDATE.

Looks like the author of the patch missed it. Find an updated version
below.

Thanks,

Anna-Maria
------------>
Subject: timers: Provide generic Kconfig switches
From: Thomas Gleixner <[email protected]>
Date: Fri, 18 May 2012 09:59:57 +0200

From: Thomas Gleixner <[email protected]>

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

[ anna-maria: Added missing GENERIC_CMOS_UPDATE switch ]

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Anna-Maria Gleixner <[email protected]>
---
kernel/time/Kconfig | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)

Index: linux/kernel/time/Kconfig
===================================================================
--- linux.orig/kernel/time/Kconfig
+++ linux/kernel/time/Kconfig
@@ -33,3 +33,38 @@ 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
+
+# Generic update of CMOS clock
+config GENERIC_CMOS_UPDATE
+ bool

2012-05-20 16:03:59

by Thomas Gleixner

[permalink] [raw]
Subject: Re: [patch 01/24] timers: Provide generic Kconfig switches

On Sun, 20 May 2012, Anna-Maria Gleixner wrote:
> On Sat, 2012-05-19 at 08:14 +0900, Paul Mundt wrote:
> > On Fri, May 18, 2012 at 04:45:43PM -0000, Anna-Maria Gleixner wrote:
> > > +# Clockevents broadcasting infrastructure
> > > +config GENERIC_CLOCKEVENTS_BROADCAST
> > > + bool
> > > + depends on GENERIC_CLOCKEVENTS
> > >
> > Looks like you've missed GENERIC_CMOS_UPDATE.
>
> Looks like the author of the patch missed it. Find an updated version
> below.

You can whack that guy if you meet him. :)

2012-05-21 09:08:11

by Thomas Gleixner

[permalink] [raw]
Subject: [tip:timers/core] timers: Provide generic Kconfig switches

Commit-ID: b5e498ad67863cc877fb05e6a71ce58eda4fb2ca
Gitweb: http://git.kernel.org/tip/b5e498ad67863cc877fb05e6a71ce58eda4fb2ca
Author: Thomas Gleixner <[email protected]>
AuthorDate: Fri, 18 May 2012 09:59:57 +0200
Committer: Thomas Gleixner <[email protected]>
CommitDate: Mon, 21 May 2012 11:01:40 +0200

timers: Provide generic Kconfig switches

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

[ anna-maria: Added missing GENERIC_CMOS_UPDATE switch ]

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Anna-Maria Gleixner <[email protected]>
Cc: Paul Mundt <[email protected]>
Link: http://lkml.kernel.org/r/1337529587.3208.2.camel@dionysos
Acked-by: Sam Ravnborg <[email protected]>
---
kernel/time/Kconfig | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig
index a20dc8a..f6ebc4f 100644
--- a/kernel/time/Kconfig
+++ b/kernel/time/Kconfig
@@ -33,3 +33,38 @@ 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
+
+# Generic update of CMOS clock
+config GENERIC_CMOS_UPDATE
+ bool