lkml.org 
[lkml]   [2008]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 8/8] x86: Disable IRQs before doing anything on nmi_shootdown_cpus()
    Date
    We need to know on which CPU we are running on, and we don't want to be
    preempted while doing this.

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ---
    arch/x86/kernel/reboot.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
    index d0c9c77..c495687 100644
    --- a/arch/x86/kernel/reboot.c
    +++ b/arch/x86/kernel/reboot.c
    @@ -582,6 +582,7 @@ static struct notifier_block crash_nmi_nb = {
    void nmi_shootdown_cpus(nmi_shootdown_cb callback)
    {
    unsigned long msecs;
    + local_irq_disable();

    /* Make a note of crashing cpu. Will be used in NMI callback.*/
    crashing_cpu = safe_smp_processor_id();
    --
    1.5.5.GIT


    \
     
     \ /
      Last update: 2008-11-12 14:39    [W:0.024 / U:30.948 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site