ARM: 7523/1: arch_timers: enable the use of the virtual timer
authorMarc Zyngier <Marc.Zyngier@arm.com>
Fri, 7 Sep 2012 17:09:57 +0000 (18:09 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 15 Sep 2012 20:53:32 +0000 (21:53 +0100)
commitf48b5f12799dbabba4a9c799a9bef0775b2f977d
tree088d7b6a3a21d3e69bc7b23fb746923b86ca0843
parent55d512e245bc7699a8800e23df1a24195dd08217
ARM: 7523/1: arch_timers: enable the use of the virtual timer

At the moment, the arch_timer driver only uses the physical timer,
which can cause problem if PL2 hasn't enabled PL1 access in CNTHCTL,
which is likely in a virtualized environment. Instead, the virtual
timer is always available.

This patch enables the use of the virtual timer, unless no
interrupt is provided in the DT for it, in which case it falls
back to the physical timer.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/arch_timer.c