x86/mce: remove ASSERT's about mce_[u|d]handler_num in mce_action()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Wed, 8 Mar 2017 14:11:06 +0000 (15:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Mar 2017 14:11:06 +0000 (15:11 +0100)
commit0489efef749e064efd0eba5fb45cf9f229fb22aa
tree83697aec624b4ca84666a825906ce6a1496d4de2
parent6fd56bc825e633470fb0807785cd32dbee8182a6
x86/mce: remove ASSERT's about mce_[u|d]handler_num in mce_action()

Those assertions as well as mce_[u|d]handlers[], mce_[u|d]handler_num
and mce_action() were intel only and lifted to the common code by c/s
3a91769d6e1. However, MCE handling on AMD does not use mce_[u|d]handlers[]
before and after that commit, so assertions in mce_action() about their
size do not make sense for AMD. To be worse, they can crash the debug
build on AMD. Remove them to make the debug build work on AMD.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/mce.c