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)
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>

No differences found