x86, mce: don't init timer if !mce_available
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Mon, 15 Jun 2009 08:18:45 +0000 (17:18 +0900)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 16 Jun 2009 23:56:04 +0000 (16:56 -0700)
commit33edbf02a92771fa2a81e41084a44ba874e3a5a5
tree1b785cc0119685e59f5cbc763834f64a8ad28357
parent184e1fdfea066ab8f12a1e8912f402d2d6556d11
x86, mce: don't init timer if !mce_available

In mce_cpu_restart, mce_init_timer is called unconditionally.
If !mce_available (e.g. mce is disabled), there are no useful work
for timer.  Stop running it.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/mcheck/mce.c