x86, mce: replace machine check events logged interval with ratelimit
authorAndi Kleen <andi@firstfloor.org>
Thu, 12 Feb 2009 12:49:33 +0000 (13:49 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 24 Feb 2009 21:25:53 +0000 (13:25 -0800)
commit8457c84d68678cbfd4167a9073b89da58e48c037
treedee40adc349b3789af984474f87e6231ab7c4d02
parentf9695df42cdbca78530b4458c38ecfdd0bb90079
x86, mce: replace machine check events logged interval with ratelimit

Impact: behavior change, use common code

Use a standard leaky bucket ratelimit for the machine check
warning print interval instead of waiting every check_interval.
Also decrease the limit to twice per minute.
This interacts better with threshold interrupts because
they can happen more often than check_interval.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/mcheck/mce_64.c