]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/power turbostat: Exit on unsupported Intel models
authorZhang Rui <rui.zhang@intel.com>
Tue, 3 Dec 2024 07:51:16 +0000 (15:51 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 3 Dec 2024 21:04:47 +0000 (16:04 -0500)
commit4133be39e216130a86382fb5cfbaf6851a6f7a45
tree8587135f7a4fe11bb7b2889ffd9198d12de8de3c
parent9e47f8adb053b69e2e8310551e6fd5156704cef4
tools/power turbostat: Exit on unsupported Intel models

Turbostat requires per-platform enabling for Intel CPU models due to
platform-specific features. When running on unsupported Intel CPU
models, turbostat currently operates with limited default features,
which can lead to users unknowingly using an outdated version of the
tool.

Enhance turbostat to exit by default when run on unsupported Intel CPU
models, with a clear message to users, informing them that their CPU
model is not supported and advising them to update to the latest version
of turbostat for full functionality.

[lenb: updated error message wording]

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c