|author||Len Brown <email@example.com>||2012-03-29 14:49:17 -0700|
|committer||Ingo Molnar <firstname.lastname@example.org>||2012-03-30 08:50:27 +0200|
x86: Remove the ancient and deprecated disable_hlt() and enable_hlt() facility
The X86_32-only disable_hlt/enable_hlt mechanism was used by the 32-bit floppy driver. Its effect was to replace the use of the HLT instruction inside default_idle() with cpu_relax() - essentially it turned off the use of HLT. This workaround was commented in the code as: "disable hlt during certain critical i/o operations" "This halt magic was a workaround for ancient floppy DMA wreckage. It should be safe to remove." H. Peter Anvin additionally adds: "To the best of my knowledge, no-hlt only existed because of flaky power distributions on 386/486 systems which were sold to run DOS. Since DOS did no power management of any kind, including HLT, the power draw was fairly uniform; when exposed to the much hhigher noise levels you got when Linux used HLT caused some of these systems to fail. They were by far in the minority even back then." Alan Cox further says: "Also for the Cyrix 5510 which tended to go castors up if a HLT occurred during a DMA cycle and on a few other boxes HLT during DMA tended to go astray. Do we care ? I doubt it. The 5510 was pretty obscure, the 5520 fixed it, the 5530 is probably the oldest still in any kind of use." So, let's finally drop this. Signed-off-by: Len Brown <email@example.com> Signed-off-by: Josh Boyer <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Acked-by: "H. Peter Anvin" <firstname.lastname@example.org> Acked-by: Alan Cox <email@example.com> Cc: Stephen Hemminger <firstname.lastname@example.org Cc: Linus Torvalds <email@example.com> Cc: <firstname.lastname@example.org> Link: http://email@example.com [ If anyone cares then alternative instruction patching could be used to replace HLT with a one-byte NOP instruction. Much simpler. ] Signed-off-by: Ingo Molnar <firstname.lastname@example.org>
Diffstat (limited to 'Documentation')
1 files changed, 0 insertions, 8 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index 0cad4803ffac..7c950d48d76e 100644
@@ -6,14 +6,6 @@ be removed from this file.
-What: x86 floppy disable_hlt
-Why: ancient workaround of dubious utility clutters the
- code used by everybody else.
-Who: Len Brown <email@example.com>
What: CONFIG_APM_CPU_IDLE, and its ability to call APM BIOS in idle
Why: This optional sub-feature of APM is of dubious reliability,