ARM: arch_timer: stop virtual timer when booted in HYP mode
authorMarc Zyngier <Marc.Zyngier@arm.com>
Tue, 12 Mar 2013 14:56:12 +0000 (14:56 +0000)
committerMark Rutland <mark.rutland@arm.com>
Fri, 7 Jun 2013 09:20:29 +0000 (10:20 +0100)
commit3f71be237ce37e0131973ebfa33b326bc51d743e
treea6ddb377465fc75e952173ec1b754aca978865eb
parentfb521a0da1551468a45f2e2a1c1941d0033357ea
ARM: arch_timer: stop virtual timer when booted in HYP mode

When booting the kernel, a bootloader could have left the virtual
timer ticking away, potentially generating interrupts. This could
be troublesome if the user of the virtual timer is not careful
when enabling the interrupt.

In order to avoid any surprise, stop the virtual timer from
interrupting us when booted in HYP mode, as we'll use the physical
timer in this case.

Reported-by: Giridhar Maruthy <giridhar.m@samsung.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Dave Martin <dave.martin@linaro.org>
arch/arm/kernel/hyp-stub.S