linux-stable/Documentation/admin-guide/pm
Wyes Karny c5940c0821 x86: Handle idle=nomwait cmdline properly for x86_idle
[ Upstream commit 8bcedb4ce0 ]

When kernel is booted with idle=nomwait do not use MWAIT as the
default idle state.

If the user boots the kernel with idle=nomwait, it is a clear
direction to not use mwait as the default idle state.
However, the current code does not take this into consideration
while selecting the default idle state on x86.

Fix it by checking for the idle=nomwait boot option in
prefer_mwait_c1_over_halt().

Also update the documentation around idle=nomwait appropriately.

[ dhansen: tweak commit message ]

Signed-off-by: Wyes Karny <wyes.karny@amd.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lkml.kernel.org/r/fdc2dc2d0a1bc21c2f53d989ea2d2ee3ccbc0dbe.1654538381.git-series.wyes.karny@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:17:28 +02:00
..
cpufreq.rst Documentation: PM: Unify copyright notices 2019-04-08 12:57:47 +02:00
cpuidle.rst x86: Handle idle=nomwait cmdline properly for x86_idle 2022-08-25 11:17:28 +02:00
index.rst Documentation: PM: Add SPDX license tags to multiple files 2019-04-08 12:57:47 +02:00
intel_epb.rst admin-guide: pm: intel_epb: Add SPDX license tag and copyright notice 2019-04-08 12:59:09 +02:00
intel_pstate.rst Documentation: PM: Unify copyright notices 2019-04-08 12:57:47 +02:00
sleep-states.rst Documentation: PM: Unify copyright notices 2019-04-08 12:57:47 +02:00
strategies.rst Documentation: PM: Unify copyright notices 2019-04-08 12:57:47 +02:00
system-wide.rst Documentation: PM: Add SPDX license tags to multiple files 2019-04-08 12:57:47 +02:00
working-state.rst Merge branches 'pm-docs' and 'pm-misc' 2019-05-06 10:55:19 +02:00