Skip to content
  • Andi Kleen's avatar
    x86, mce: add table driven machine check grading · 817f32d0
    Andi Kleen authored
    
    
    The machine check grading (as in deciding what should be done for a given
    register value) has to be done multiple times soon and it's also getting
    more complicated.
    So it makes sense to consolidate it into a single function. To get smaller
    and more straight forward and possibly more extensible code I opted towards
    a new table driven method. The various rules are put into a table
    when is then executed by a very simple interpreter.
    
    The grading engine is in a new file mce-severity.c. I also added a private
    include file mce-internal.h, because mce.h is already a bit too cluttered.
    
    This is dead code right now, but will be used in followon patches.
    
    Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
    Signed-off-by: default avatarHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    817f32d0