x86: HPET_MSI Initialise per-cpu HPET timers
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Sat, 6 Sep 2008 01:02:18 +0000 (18:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:08 +0000 (16:53 +0200)
commit26afe5f2fbf06ea0765aaa316640c4dd472310c0
treeaa9592aa1df9c30058904f3964af72be592c0f63
parent4588c1f0354ac96a358b3f9e8e4331c51cf3336f
x86: HPET_MSI Initialise per-cpu HPET timers

Initialize a per CPU HPET MSI timer when possible. We retain the HPET
timer 0 (IRQ 0) and timer 1 (IRQ 8) as is when legacy mode is being used. We
setup the remaining HPET timers as per CPU MSI based timers. This per CPU
timer will eliminate the need for timer broadcasting with IRQ 0 when there
is non-functional LAPIC timer across CPU deep C-states.

If there are more CPUs than number of available timers, CPUs that do not
find any timer to use will continue using LAPIC and IRQ 0 broadcast.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/hpet.c