clocksource: arm_global_timer: Only check for unusable timer on A9
authorMatthew Leach <matthew.leach@arm.com>
Fri, 14 Mar 2014 10:18:19 +0000 (10:18 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 22 Apr 2014 09:44:24 +0000 (11:44 +0200)
commit2cf2ff9f1fcdca404885bc55292b2046eabc039a
tree5735f181a7751ab76f5e6b46b8c969efc7c2c2f6
parenta798c10faf62a505d24e5f6213fbaf904a39623f
clocksource: arm_global_timer: Only check for unusable timer on A9

The check for a usable global timer in the probe code does not enquire
which CPU we are currently running on. This can cause the driver to
incorrectly assume we have an unusable global timer if we are running
on a CPU other than A9.

Before checking the CPU revision, ensure we are running on an A9 CPU.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/arm_global_timer.c