lkml.org 
[lkml]   [2012]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [tip:x86/debug] x86, reboot: Use NMI instead of REBOOT_VECTOR to stop cpus
From
> From: Don Zickus <dzickus@redhat.com>
> Date: Thu, 5 Jan 2012 13:06:58 -0500
> Subject: [PATCH] x86, reboot: typo in nmi reboot path
>
> It was brought to my attention that my x86 change to use NMI in the
> reboot path broke Intel Nehalem and Westmere boxes when using kexec.
>
> I realized I had mistyped the if statement in commit
> 3603a2512f9e69dc87914ba922eb4a0812b21cd6 and stuck the ')' in
> the wrong spot.  Putting it in the right spot fixes kexec again.
>
> Doh.
>
> Reported-by: Yinghai Lu <yinghai@kernel.org>
> Signed-off-by: Don Zickus <dzickus@redhat.com>

Tested-by: Yinghai Lu <yinghai@kernel.org>

> ---
>  arch/x86/kernel/smp.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/smp.c b/arch/x86/kernel/smp.c
> index e72b175..3f3d3f0 100644
> --- a/arch/x86/kernel/smp.c
> +++ b/arch/x86/kernel/smp.c
> @@ -176,7 +176,7 @@ static void native_nmi_stop_other_cpus(int wait)
>         */
>        if (num_online_cpus() > 1) {
>                /* did someone beat us here? */
> -               if (atomic_cmpxchg(&stopping_cpu, -1, safe_smp_processor_id() != -1))
> +               if (atomic_cmpxchg(&stopping_cpu, -1, safe_smp_processor_id()) != -1)
>                        return;
>
>                if (register_nmi_handler(NMI_LOCAL, smp_stop_nmi_callback,
> --
> 1.7.7.4
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2012-01-05 22:47    [W:0.083 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site