Commit da649d9d authored by Calvin Owens's avatar Calvin Owens Committed by Greg Kroah-Hartman
Browse files

tools/power turbostat: Handle cap_get_proc() ENOSYS



[ Upstream commit d34fe509 ]

Kernels configured with CONFIG_MULTIUSER=n have no cap_get_proc().
Check for ENOSYS to recognize this case, and continue on to
attempt to access the requested MSRs (such as temperature).

Signed-off-by: default avatarCalvin Owens <calvin@wbinvd.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6c31faeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment