Skip to content

Commit

Permalink
toplev: Warn for unknown CPU models
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Jan 11, 2024
1 parent 036db87 commit 0ddfbf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -4097,6 +4097,8 @@ def model_setup(runner, cpuname, pe, kernel_version):
import ehl_ratios
model = ehl_ratios
else:
if not args.quiet:
print("Warning: Unknown CPU model number, falling back to simple model")
ht_warning()
import simple_ratios
model = simple_ratios
Expand Down

0 comments on commit 0ddfbf6

Please sign in to comment.