Skip to content

Commit

Permalink
Don't tune TurboBoost setting on non-Intel (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom authored May 3, 2024
1 parent c964503 commit 6573f89
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyperf/_system.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import errno
import os.path
import platform
import re
import struct
import subprocess
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6573f89

Please sign in to comment.