From 6573f89c2e9166a5c805a5dbc3ebe1d98896394b Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 2 May 2024 20:20:46 -0400 Subject: [PATCH] Don't tune TurboBoost setting on non-Intel (#185) --- pyperf/_system.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyperf/_system.py b/pyperf/_system.py index 366a1502..e634a974 100644 --- a/pyperf/_system.py +++ b/pyperf/_system.py @@ -1,5 +1,6 @@ import errno import os.path +import platform import re import struct import subprocess @@ -125,7 +126,11 @@ class TurboBoostMSR(Operation): @staticmethod def available(): - return (OS_LINUX and not use_intel_pstate()) + return ( + OS_LINUX and + not use_intel_pstate() and + platform.machine() not in ('x86', 'x86_64', 'amd64') + ) def __init__(self, system): Operation.__init__(self, 'Turbo Boost (MSR)', system)