aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2019-05-09 23:28:41 +0200
committerRafael J. Wysocki <[email protected]>2019-05-10 10:47:35 +0200
commit9ed0985332a6576efbc3e435459a857e50e0d72c (patch)
tree7ce977c8cd154a648b135c6ca01c5253eb14ce71 /tools/perf/scripts/python/exported-sql-viewer.py
parent8f5e823f9131a430b12f73e9436d7486e20c16f5 (diff)
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 <[email protected]> Tested-by: Ido Schimmel <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions