lkml.org 
[lkml]   [2008]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [9/20] x86: Don't use oops_begin in 64bit mce code
    Date

    It is not really useful to lock machine checks against oopses. And
    machine checks normally don't nest, so they don't need their
    own locking. Just call bust_spinlock/console_verbose directly.

    Signed-off-by: Andi Kleen <ak@suse.de>

    ---
    arch/x86/kernel/cpu/mcheck/mce_64.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    Index: linux/arch/x86/kernel/cpu/mcheck/mce_64.c
    ===================================================================
    --- linux.orig/arch/x86/kernel/cpu/mcheck/mce_64.c
    +++ linux/arch/x86/kernel/cpu/mcheck/mce_64.c
    @@ -133,7 +133,8 @@ static void mce_panic(char *msg, struct
    {
    int i;

    - oops_begin();
    + console_verbose();
    + bust_spinlocks(1);
    for (i = 0; i < MCE_LOG_LEN; i++) {
    unsigned long tsc = mcelog.entry[i].tsc;


    \
     
     \ /
      Last update: 2008-01-03 01:57    [W:0.040 / U:0.008 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site