lkml.org 
[lkml]   [2009]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [1/10] x86: MCE: Reinitialize per cpu features on resume v3
    Date

    Impact: Bug fix

    This fixes a long standing bug in the machine check code. On resume the
    boot CPU wouldn't get its vendor specific state like thermal handling
    reinitialized. This means the boot cpu wouldn't ever get any thermal
    events reported again.

    Call the respective initialization functions on resume

    v2: Remove ancient init because they don't have a resume device anyways.
    Pointed out by Thomas Gleixner.
    v3: Now fix the Subject too to reflect v2 change

    Signed-off-by: Andi Kleen <ak@linux.intel.com>

    ---
    arch/x86/kernel/cpu/mcheck/mce_64.c | 1 +
    1 file changed, 1 insertion(+)

    Index: linux/arch/x86/kernel/cpu/mcheck/mce_64.c
    ===================================================================
    --- linux.orig/arch/x86/kernel/cpu/mcheck/mce_64.c 2009-02-12 11:30:51.000000000 +0100
    +++ linux/arch/x86/kernel/cpu/mcheck/mce_64.c 2009-02-12 12:10:22.000000000 +0100
    @@ -734,6 +734,7 @@
    static int mce_resume(struct sys_device *dev)
    {
    mce_init(NULL);
    + mce_cpu_features(&current_cpu_data);
    return 0;
    }


    \
     
     \ /
      Last update: 2009-02-12 13:45    [W:0.019 / U:118.948 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site