aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2019-05-09 23:28:41 +0200
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2019-05-10 10:47:35 +0200
commit9ed0985332a6576efbc3e435459a857e50e0d72c (patch)
tree7ce977c8cd154a648b135c6ca01c5253eb14ce71 /arch/sparc
parentMerge tag 'pm-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae... (diff)
downloadlinux-9ed0985332a6576efbc3e435459a857e50e0d72c.tar.gz
linux-9ed0985332a6576efbc3e435459a857e50e0d72c.tar.bz2
linux-9ed0985332a6576efbc3e435459a857e50e0d72c.zip
x86: intel_epb: Take CONFIG_PM into account
Commit b9c273babce7 ("PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs interface") caused kernels built with CONFIG_PM unset to crash on systems supporting the Performance and Energy Bias Hint (EPB), because it attempts to add files to sysfs directories that don't exist on those systems. Prevent that from happening by taking CONFIG_PM into account so that the code depending on it is not compiled at all when it is not set. Fixes: b9c273babce7 ("PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs interface") Reported-by: Ido Schimmel <idosch@mellanox.com> Tested-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/sparc')
0 files changed, 0 insertions, 0 deletions