aboutsummaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2017-04-03 23:35:59 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2017-04-03 23:35:59 -0400
commitfb72dd09cfc16d0260363d38df1225b6663bc084 (patch)
treedb1472467249286171d3e35c4b7a77c165571892 /common.py
parente15736509ab36e33bc71a0fe1120f2974e389725 (diff)
Diffstat (limited to 'common.py')
-rw-r--r--common.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/common.py b/common.py
index 9ea2915..2326ec3 100644
--- a/common.py
+++ b/common.py
@@ -161,10 +161,9 @@ def num_cpus():
161 161
162def ft_freq(): 162def ft_freq():
163 umachine = subprocess.check_output(["uname", "-m"]) 163 umachine = subprocess.check_output(["uname", "-m"])
164
165 if re.match("armv7", umachine): 164 if re.match("armv7", umachine):
166 # Arm V7s use a millisecond timer 165 # Arm V7s use a millisecond timer
167 freq = 1000.0 166 freq = 800.0
168 elif re.match("x86", umachine): 167 elif re.match("x86", umachine):
169 # X86 timer is equal to processor clock 168 # X86 timer is equal to processor clock
170 reg = re.compile(r'^cpu MHz\s*:\s*(?P<FREQ>\d+)', re.M) 169 reg = re.compile(r'^cpu MHz\s*:\s*(?P<FREQ>\d+)', re.M)