Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-06-20 Thread Baruch Siach
Hi Pavel, On Thu, Jun 20, 2013 at 04:44:33PM +0200, Pavel Machek wrote: > > > >@@ -73,6 +77,9 @@ static void add_clocksource(struct device_node > > > > *source_timer) > > > > } > > > > static void __iomem *sched_io_base; > > > >+#ifndef CONFIG_HAVE_SETUP_SCHED_CLOCK > > > >+static u64

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-06-20 Thread Pavel Machek
Hi! > > >@@ -73,6 +77,9 @@ static void add_clocksource(struct device_node > > > *source_timer) > > > } > > > static void __iomem *sched_io_base; > > >+#ifndef CONFIG_HAVE_SETUP_SCHED_CLOCK > > >+static u64 sched_clock_mult __read_mostly; > > >+#endif > > > static u32 read_sched_clock(void) >

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-06-20 Thread Pavel Machek
Hi! @@ -73,6 +77,9 @@ static void add_clocksource(struct device_node *source_timer) } static void __iomem *sched_io_base; +#ifndef CONFIG_HAVE_SETUP_SCHED_CLOCK +static u64 sched_clock_mult __read_mostly; +#endif static u32 read_sched_clock(void) { @@ -97,7 +104,11

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-06-20 Thread Baruch Siach
Hi Pavel, On Thu, Jun 20, 2013 at 04:44:33PM +0200, Pavel Machek wrote: @@ -73,6 +77,9 @@ static void add_clocksource(struct device_node *source_timer) } static void __iomem *sched_io_base; +#ifndef CONFIG_HAVE_SETUP_SCHED_CLOCK +static u64 sched_clock_mult __read_mostly;

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-30 Thread Baruch Siach
Hi John, On Thu, May 30, 2013 at 09:11:17AM -0700, John Stultz wrote: > On 05/29/2013 10:32 PM, Baruch Siach wrote: > >On Tue, May 28, 2013 at 01:24:17PM -0700, John Stultz wrote: > >>On 05/26/2013 05:12 AM, Baruch Siach wrote: > >>> static const struct of_device_id osctimer_ids[] __initconst =

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-30 Thread John Stultz
On 05/29/2013 10:32 PM, Baruch Siach wrote: Hi John, On Tue, May 28, 2013 at 01:24:17PM -0700, John Stultz wrote: On 05/26/2013 05:12 AM, Baruch Siach wrote: static const struct of_device_id osctimer_ids[] __initconst = { @@ -124,3 +135,10 @@ void __init dw_apb_timer_init(void)

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-30 Thread John Stultz
On 05/29/2013 10:32 PM, Baruch Siach wrote: Hi John, On Tue, May 28, 2013 at 01:24:17PM -0700, John Stultz wrote: On 05/26/2013 05:12 AM, Baruch Siach wrote: static const struct of_device_id osctimer_ids[] __initconst = { @@ -124,3 +135,10 @@ void __init dw_apb_timer_init(void)

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-30 Thread Baruch Siach
Hi John, On Thu, May 30, 2013 at 09:11:17AM -0700, John Stultz wrote: On 05/29/2013 10:32 PM, Baruch Siach wrote: On Tue, May 28, 2013 at 01:24:17PM -0700, John Stultz wrote: On 05/26/2013 05:12 AM, Baruch Siach wrote: static const struct of_device_id osctimer_ids[] __initconst = { @@

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-29 Thread Baruch Siach
Hi John, On Tue, May 28, 2013 at 01:24:17PM -0700, John Stultz wrote: > On 05/26/2013 05:12 AM, Baruch Siach wrote: > >ARM is the only architecture providing sched_clock.h and setup_sched_clock(). > >Implement sched_clock() for use by other architectures. > > > >Cc: Ingo Molnar > >Cc: Peter

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-29 Thread Baruch Siach
Hi John, On Tue, May 28, 2013 at 01:24:17PM -0700, John Stultz wrote: On 05/26/2013 05:12 AM, Baruch Siach wrote: ARM is the only architecture providing sched_clock.h and setup_sched_clock(). Implement sched_clock() for use by other architectures. Cc: Ingo Molnar mi...@redhat.com Cc: Peter

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-28 Thread John Stultz
On 05/26/2013 05:12 AM, Baruch Siach wrote: ARM is the only architecture providing sched_clock.h and setup_sched_clock(). Implement sched_clock() for use by other architectures. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: John Stultz Cc: Thomas Gleixner Cc: Jamie Iles Cc: Dinh Nguyen

Re: [RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-28 Thread John Stultz
On 05/26/2013 05:12 AM, Baruch Siach wrote: ARM is the only architecture providing sched_clock.h and setup_sched_clock(). Implement sched_clock() for use by other architectures. Cc: Ingo Molnar mi...@redhat.com Cc: Peter Zijlstra pet...@infradead.org Cc: John Stultz john.stu...@linaro.org Cc:

[RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-26 Thread Baruch Siach
ARM is the only architecture providing sched_clock.h and setup_sched_clock(). Implement sched_clock() for use by other architectures. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: John Stultz Cc: Thomas Gleixner Cc: Jamie Iles Cc: Dinh Nguyen Signed-off-by: Baruch Siach --- arch/arm/Kconfig

[RFC PATCH 2/2] clocksource: dw_apb: allow build for architectures other than arm

2013-05-26 Thread Baruch Siach
ARM is the only architecture providing sched_clock.h and setup_sched_clock(). Implement sched_clock() for use by other architectures. Cc: Ingo Molnar mi...@redhat.com Cc: Peter Zijlstra pet...@infradead.org Cc: John Stultz john.stu...@linaro.org Cc: Thomas Gleixner t...@linutronix.de Cc: Jamie