x86: hpet: Cleanup the clockevents init and register code
authorThomas Gleixner <tglx@linutronix.de>
Wed, 18 May 2011 21:33:43 +0000 (21:33 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 19 May 2011 12:24:16 +0000 (14:24 +0200)
commitab0e08f15d23628dd8d50bf6ce1a935a8840c7dc
tree04cfc2202180f840d71a60e7ba4d48cc3003bc76
parent61ee9a4ba05f0a4163d43a33dee7a0651e080b98
x86: hpet: Cleanup the clockevents init and register code

No need to recalculate the frequency and the conversion factors over
and over. Calculate the frequency once and use the new config/register
interface and let the core code do the math.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Link: http://lkml.kernel.org/r/%3C20110518210136.646482357%40linutronix.de%3E
arch/x86/kernel/hpet.c