FW: fix nohalt boot option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"nohalt" option is currently broken on IPF (2.6.12 is the earliest
kernel I looked, might be broken even earlier).

- Ken


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Chen, Kenneth W
Sent: Monday, August 08, 2005 3:25 PM
To: [email protected]
Subject: fix nohalt boot option

Apparent, this changeset broke the "nohalt" kernel boot option.

http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2
.6.git;a=commit;h=8df5a500a3e97f7811cdce0f553ca1917ccd4220

default_idle() is looking at new variable can_do_pal_halt.  However,
that variable did not get cleared upon "nohalt" boot option.  Resulting
a wacky behavior that the kernel option can only have effect when
perfmon
is exercised.


Signed-off-by: Ken Chen <[email protected]>


--- linux-2.6.12/arch/ia64/kernel/process.c.orig	2005-08-08
15:05:47.319034969 -0700
+++ linux-2.6.12/arch/ia64/kernel/process.c	2005-08-08
15:05:59.147159824 -0700
@@ -178,7 +178,7 @@ static int can_do_pal_halt = 1;
 
 static int __init nohalt_setup(char * str)
 {
-	pal_halt = 0;
+	pal_halt = can_do_pal_halt = 0;
 	return 1;
 }
 __setup("nohalt", nohalt_setup);

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux