PM: Provide a config snippet for disabling PM
authorMark Brown <broonie@kernel.org>
Wed, 29 Nov 2017 11:12:27 +0000 (11:12 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 4 Dec 2017 14:14:48 +0000 (15:14 +0100)
commit4ab53fe612e21b0f509a3b468c56706364de98df
treef12e59ec4508c3872ec259cd56c8935db0d1d4bf
parentae64f9bd1d3621b5e60d7363bc20afb46aede215
PM: Provide a config snippet for disabling PM

A frequent source of build problems is poor handling of optional PM
support, almost all development is done with the PM options enabled
but they can be turned off.  Currently few if any of the build test
services do this as standard as there is no standard config for it and
the use of selects and def_bool means that simply setting CONFIG_PM=n
doesn't do what is expected.  To make this easier provide a fragement
that can be used with KCONFIG_ALLCONFIG to force PM off.

CONFIG_XEN is disabled as Xen uses hibernation callbacks which end up
turning on power management on architectures with Xen.  Some cpuidle
implementations on ARM select PM so CONFIG_CPU_IDLE is disabled, and
some ARM architectures unconditionally enable PM so they are also
disabled.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
MAINTAINERS
kernel/configs/nopm.config [new file with mode: 0644]