Re: [PATCH] i386/x86_64: Don't IPI to offline cpus on shutdown

From: Zwane Mwaikambo
Date: Mon Nov 28 2005 - 12:22:50 EST


On Sun, 27 Nov 2005, Eric W. Biederman wrote:

> diff --git a/arch/x86_64/kernel/reboot.c b/arch/x86_64/kernel/reboot.c
> index 75235ed..57117b8 100644
> --- a/arch/x86_64/kernel/reboot.c
> +++ b/arch/x86_64/kernel/reboot.c
> @@ -6,6 +6,7 @@
> #include <linux/kernel.h>
> #include <linux/ctype.h>
> #include <linux/string.h>
> +#include <linux/pm.h>
> #include <asm/io.h>
> #include <asm/kdebug.h>
> #include <asm/delay.h>
> @@ -154,10 +155,11 @@ void machine_halt(void)
>
> void machine_power_off(void)
> {
> - if (!reboot_force) {
> - machine_shutdown();
> - }
> - if (pm_power_off)
> + if (pm_power_off) {
> + if (!reboot_force) {
> + machine_shutdown();
> + }
> pm_power_off();
> + }
> }

That makes sense, thanks Eric.

Zwane

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/