msm: timer: Remove SoC specific #ifdefs
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 8 Nov 2011 18:34:08 +0000 (10:34 -0800)
committerDavid Brown <davidb@codeaurora.org>
Thu, 10 Nov 2011 18:36:33 +0000 (10:36 -0800)
commit2081a6b57fba2717fa4b04fe978abad238e1f9e4
treedf2af31666b505eb4cf2a753b5917bbb6647fd94
parent2a00c1068b2c1ae451e230ef8bd010d7b2f56f54
msm: timer: Remove SoC specific #ifdefs

The timer frequency is currently ifdefed in addition to setting
the DGT clock's divider value on SCORPIONMP targets. Setup the
frequency dynamically using the existing cpu_is_*() branches and
assign a custom clocksource read function for 7x01a to get the
shift out of the generic path.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: David Brown <davidb@codeaurora.org>
arch/arm/mach-msm/timer.c