]> git.baikalelectronics.ru Git - kernel.git/commit
msm: timer: Use clockevents_config_and_register()
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 8 Nov 2011 18:34:10 +0000 (10:34 -0800)
committerDavid Brown <davidb@codeaurora.org>
Thu, 10 Nov 2011 18:36:34 +0000 (10:36 -0800)
commit5302fcde31a8281021292e27bf4438469d98ad95
tree74724584b0ede5becf3dafdee950071c4baec06e
parent07eeac58260b454c2c1fa3db42d9f1d33ac7b1fc
msm: timer: Use clockevents_config_and_register()

Don't open code the min/max delta logic. Use the generic
version instead. Also expand the number of bits we can handle
because there isn't anything that says we can't handle all 32
bits.

Before:
 max_delta_ns:   122880426391799
 min_delta_ns:   122070
 mult:           140737
 shift:          32

After:
 max_delta_ns:   131071523464981
 min_delta_ns:   122069
 mult:           70369
 shift:          31

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