Skip to content

Commit

Permalink
x86 idle: deprecate "no-hlt" cmdline param
Browse files Browse the repository at this point in the history
We'd rather that modern machines not check if HLT works on
every entry into idle, for the benefit of machines that had
marginal electricals 15-years ago.  If those machines are still running
the upstream kernel, they can use "idle=poll".  The only difference
will be that they'll now invoke HLT in machine_hlt().

cc: [email protected] # .39.x
Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
lenb committed May 29, 2011
1 parent 99c6322 commit cdaab4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Documentation/feature-removal-schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ Who: Len Brown <[email protected]>

----------------------------

What: x86_32 "no-hlt" cmdline param
When: 2012
Why: remove a branch from idle path, simplify code used by everybody.
This option disabled the use of HLT in idle and machine_halt()
for hardware that was flakey 15-years ago. Today we have
"idle=poll" that removed HLT from idle, and so if such a machine
is still running the upstream kernel, "idle=poll" is likely sufficient.
Who: Len Brown <[email protected]>

----------------------------

What: PRISM54
When: 2.6.34

Expand Down
1 change: 1 addition & 0 deletions arch/x86/kernel/cpu/bugs.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

static int __init no_halt(char *s)
{
WARN_ONCE(1, "\"no-hlt\" is deprecated, please use \"idle=poll\"\n");
boot_cpu_data.hlt_works_ok = 0;
return 1;
}
Expand Down

0 comments on commit cdaab4a

Please sign in to comment.