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 frequency

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 spec

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) { > + arch_

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_TVA