x86, mce: make polling timer interval per CPU
authorAndi Kleen <andi@firstfloor.org>
Thu, 9 Apr 2009 10:28:22 +0000 (12:28 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 22 Apr 2009 20:54:37 +0000 (13:54 -0700)
commit6298c512bc1007c3ff5c9ce20e6996781651cc45
tree36e3c514d28f8d49410ccd0b683239640dd5b3ff
parenta939b96cccdb65df80a52447ec8e4a6d79c56dbb
x86, mce: make polling timer interval per CPU

The polling timer while running per CPU still uses a global next_interval
variable, which lead to some CPUs either polling too fast or too slow.
This was not a serious problem because all errors get picked up eventually,
but it's still better to avoid it. Turn next_interval into a per cpu variable.

v2: Fix check_interval == 0 case (Hidetoshi Seto)

[ Impact: minor bug fix ]

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/mcheck/mce_64.c