]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/power turbostat: Handle cap_get_proc() ENOSYS
authorCalvin Owens <calvin@wbinvd.org>
Sat, 14 Jun 2025 02:20:28 +0000 (19:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:36:25 +0000 (18:36 +0200)
commitab0f1e70f7429c169cdec9bb5375581e878a8c95
tree48162ba691320ca52c660f61ac6f16c7fef708b1
parentdee93a756326541448e4056a6007a15573761ced
tools/power turbostat: Handle cap_get_proc() ENOSYS

[ Upstream commit d34fe509f5f76d9dc36291242d67c6528027ebbd ]

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: Calvin Owens <calvin@wbinvd.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/x86/turbostat/turbostat.c