Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-21 Thread Christopher Covington
On 08/14/2012 01:52 PM, Catalin Marinas wrote: > From: Marc Zyngier > > This patch adds support for the ARM generic timers with A64 instructions > for accessing the timer registers. It uses the physical counter as the > clock source and the virtual counter as sched_clock. > > The timer

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-21 Thread Christopher Covington
On 08/14/2012 01:52 PM, Catalin Marinas wrote: From: Marc Zyngier marc.zyng...@arm.com This patch adds support for the ARM generic timers with A64 instructions for accessing the timer registers. It uses the physical counter as the clock source and the virtual counter as sched_clock. The

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-17 Thread Santosh Shilimkar
On Tuesday 14 August 2012 11:22 PM, Catalin Marinas wrote: From: Marc Zyngier This patch adds support for the ARM generic timers with A64 instructions for accessing the timer registers. It uses the physical counter as the clock source and the virtual counter as sched_clock. The timer frequency

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-17 Thread Tony Lindgren
* Catalin Marinas [120814 11:00]: > From: Marc Zyngier > > This patch adds support for the ARM generic timers with A64 instructions > for accessing the timer registers. It uses the physical counter as the > clock source and the virtual counter as sched_clock. > > The timer frequency can be

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-17 Thread Tony Lindgren
* Catalin Marinas catalin.mari...@arm.com [120814 11:00]: From: Marc Zyngier marc.zyng...@arm.com This patch adds support for the ARM generic timers with A64 instructions for accessing the timer registers. It uses the physical counter as the clock source and the virtual counter as

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-17 Thread Santosh Shilimkar
On Tuesday 14 August 2012 11:22 PM, Catalin Marinas wrote: From: Marc Zyngiermarc.zyng...@arm.com This patch adds support for the ARM generic timers with A64 instructions for accessing the timer registers. It uses the physical counter as the clock source and the virtual counter as sched_clock.

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-16 Thread Linus Walleij
On Tue, Aug 14, 2012 at 7:52 PM, Catalin Marinas wrote: > From: Marc Zyngier (...) > +static void __init arch_timer_calibrate(void) I think you wrot in the last review thread that this should be renamed "arch_timer_get_freq()". > +{ > + if (arch_timer_rate == 0) { > +

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-16 Thread Linus Walleij
On Tue, Aug 14, 2012 at 7:52 PM, Catalin Marinas catalin.mari...@arm.com wrote: From: Marc Zyngier marc.zyng...@arm.com (...) +static void __init arch_timer_calibrate(void) I think you wrot in the last review thread that this should be renamed arch_timer_get_freq(). +{ + if

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > +static void arch_timer_reg_write(int reg, u32 val) > +{ > + switch (reg) { > + case ARCH_TIMER_REG_CTRL: > + asm volatile("msr cntp_ctl_el0, %0" : : "r" (val)); > + break; > + case

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: +static void arch_timer_reg_write(int reg, u32 val) +{ + switch (reg) { + case ARCH_TIMER_REG_CTRL: + asm volatile(msr cntp_ctl_el0, %0 : : r (val)); + break; + case ARCH_TIMER_REG_TVAL: +

[PATCH v2 28/31] arm64: Generic timers support

2012-08-14 Thread Catalin Marinas
From: Marc Zyngier This patch adds support for the ARM generic timers with A64 instructions for accessing the timer registers. It uses the physical counter as the clock source and the virtual counter as sched_clock. The timer frequency can be specified via DT or read from the CNTFRQ_EL0

[PATCH v2 28/31] arm64: Generic timers support

2012-08-14 Thread Catalin Marinas
From: Marc Zyngier marc.zyng...@arm.com This patch adds support for the ARM generic timers with A64 instructions for accessing the timer registers. It uses the physical counter as the clock source and the virtual counter as sched_clock. The timer frequency can be specified via DT or read from