[PATCH -mm] x86 halt warning fix

From: Dave Young
Date: Wed Mar 12 2008 - 06:03:17 EST


While halting kernel report warning at arch/x86/kernel/reboot.c : 424
fix the WARN_ON_ONCE param to ret

Signed-off-by: Dave Young <hidave.darkstar@xxxxxxxxx>

---
arch/x86/kernel/reboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff -upr linux/arch/x86/kernel/reboot.c linux.new/arch/x86/kernel/reboot.c
--- linux/arch/x86/kernel/reboot.c 2008-03-12 17:56:48.000000000 +0800
+++ linux.new/arch/x86/kernel/reboot.c 2008-03-12 17:58:43.000000000 +0800
@@ -421,7 +421,7 @@ static void native_machine_shutdown(void

schedparm.sched_priority = 99;
ret = sched_setscheduler(current, SCHED_RR, &schedparm);
- WARN_ON_ONCE(1);
+ WARN_ON_ONCE(ret);

set_cpus_allowed(current, cpumask_of_cpu(reboot_cpu_id));
}
--
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/