]> git.ipfire.org Git - thirdparty/linux.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)
committerLen Brown <len.brown@intel.com>
Fri, 8 Aug 2025 20:05:53 +0000 (16:05 -0400)
commitd34fe509f5f76d9dc36291242d67c6528027ebbd
tree8f44c323aa12f3bff2806813ea629e980d1a525c
parent6ea0ec1b958a84aff9f03fb0ae4613a4d5bed3ea
tools/power turbostat: Handle cap_get_proc() ENOSYS

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>
tools/power/x86/turbostat/turbostat.c