diff options
| author | Len Brown <len.brown@intel.com> | 2025-12-08 10:01:04 -0500 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-02-04 14:52:11 -0600 |
| commit | d0f7093ad5e4aa37405da2669bca1a62d22b7025 (patch) | |
| tree | 888699e30e8d832d5c6a9c834931dcf1b1f6eae9 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 61764831d5b148a9f3afe7ac35089e5908c92a81 (diff) | |
tools/power turbostat: Harden against unexpected values
Divide-by-zero resulted if LLC references == 0
Pull the percentage division into pct() to centralize sanity checks there.
Fixes: 8808292799b0 ("tools/power turbostat: Print "nan" for out of range percentages")
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
