Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/idle: Add support for nohlt

This patch enables config option GENERIC_IDLE_POLL_SETUP for arch
powerpc. This adds support for kernel param 'nohlt'.

Powerpc kernel also supports another kernel boot-time param called
'powersave' which can also be used to disable all cpu idle-states and
forces CPU to an idle-loop similar to what cpu_idle_poll() does. This
patch however makes powerpc kernel-parameters better aligned to the
generic boot-time parameters.

Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230818050739.827851-1-vaibhav@linux.ibm.com

authored by

Vaibhav Jain and committed by
Michael Ellerman
0ceef6e9 b949ee68

+2 -1
+1 -1
Documentation/admin-guide/kernel-parameters.txt
··· 3717 3717 3718 3718 nohibernate [HIBERNATION] Disable hibernation and resume. 3719 3719 3720 - nohlt [ARM,ARM64,MICROBLAZE,MIPS,SH] Forces the kernel to 3720 + nohlt [ARM,ARM64,MICROBLAZE,MIPS,PPC,SH] Forces the kernel to 3721 3721 busy wait in do_idle() and not use the arch_cpu_idle() 3722 3722 implementation; requires CONFIG_GENERIC_IDLE_POLL_SETUP 3723 3723 to be effective. This is useful on platforms where the
+1
arch/powerpc/Kconfig
··· 193 193 select GENERIC_CPU_VULNERABILITIES if PPC_BARRIER_NOSPEC 194 194 select GENERIC_EARLY_IOREMAP 195 195 select GENERIC_GETTIMEOFDAY 196 + select GENERIC_IDLE_POLL_SETUP 196 197 select GENERIC_IRQ_SHOW 197 198 select GENERIC_IRQ_SHOW_LEVEL 198 199 select GENERIC_PCI_IOMAP if PCI