Skip to content

Commit 3cae85f

Browse files
ffainelliJonathan Corbet
authored andcommitted
Documentation/admin-guide: kernel-parameters: Update nohlt section
Update the documentation regarding "nohlt" and indicate that it is not only for bugs, but can be useful to disable the architecture specific sleep instructions. ARM, ARM64, SuperH and Microblaze all use CONFIG_GENERIC_IDLE_POLL_SETUP which takes care of honoring the "hlt"/"nohlt" parameters. Signed-off-by: Florian Fainelli <[email protected]> Acked-by: Randy Dunlap <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent a15cb2c commit 3cae85f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3266,9 +3266,14 @@
32663266
parameter, xsave area per process might occupy more
32673267
memory on xsaves enabled systems.
32683268

3269-
nohlt [BUGS=ARM,SH] Tells the kernel that the sleep(SH) or
3270-
wfi(ARM) instruction doesn't work correctly and not to
3271-
use it. This is also useful when using JTAG debugger.
3269+
nohlt [ARM,ARM64,MICROBLAZE,SH] Forces the kernel to busy wait
3270+
in do_idle() and not use the arch_cpu_idle()
3271+
implementation; requires CONFIG_GENERIC_IDLE_POLL_SETUP
3272+
to be effective. This is useful on platforms where the
3273+
sleep(SH) or wfi(ARM,ARM64) instructions do not work
3274+
correctly or when doing power measurements to evalute
3275+
the impact of the sleep instructions. This is also
3276+
useful when using JTAG debugger.
32723277

32733278
no_file_caps Tells the kernel not to honor file capabilities. The
32743279
only way then for a file to be executed with privilege

0 commit comments

Comments
 (0)