Commit 06cd171b authored by Len Brown's avatar Len Brown Committed by Greg Kroah-Hartman
Browse files

tools/power turbostat: Handle non-root legacy-uncore sysfs permissions



[ Upstream commit e60a13bc ]

/sys/devices/system/cpu/intel_uncore_frequency/package_X_die_Y/
may be readable by all, but
/sys/devices/system/cpu/intel_uncore_frequency/package_X_die_Y/current_freq_khz
may be readable only by root.

Non-root turbostat users see complaints in this scenario.

Fail probe of the interface if we can't read current_freq_khz.

Reported-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Original-patch-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ad96ead7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment