aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarissa Wall <marissaw@google.com>2017-10-17 10:01:29 -0700
committerMarissa Wall <marissaw@google.com>2017-11-27 15:14:03 -0800
commit73355fecd56fc28397aefcbb9c29a2657468a0f0 (patch)
treede5e2bdb23599a79f6d047e5308f5713f5ebcdfc
parent70b4f6775c6f4e49fc284b483a8790a7824b22c9 (diff)
downloadlisa-73355fecd56fc28397aefcbb9c29a2657468a0f0.tar.gz
experiments/power: Disable thermal throttling
Disable thermal engine and perfd that can cause thermal throttling and interfere with the power measurements. Test: run ./run_cpu_frequency.py Change-Id: Ifc811f29cb9ac1a3b9213ff9869ce16b664917b3
-rwxr-xr-xexperiments/power/eas/run_cpu_frequency.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/experiments/power/eas/run_cpu_frequency.py b/experiments/power/eas/run_cpu_frequency.py
index 011b942..15bddaa 100755
--- a/experiments/power/eas/run_cpu_frequency.py
+++ b/experiments/power/eas/run_cpu_frequency.py
@@ -94,6 +94,10 @@ def experiment():
# Turn off screen
Screen.set_screen(target, on=False)
+ # Stop thermal engine and perfd
+ target.execute("stop thermal-engine")
+ target.execute("stop perfd")
+
# Store governors so they can be restored later
governors = [ target.cpufreq.get_governor(cpu) for cpu in cpus]
@@ -163,6 +167,10 @@ def experiment():
# Restore non critical tasks
target.cgroups.freeze(thaw=True)
+ # Stop thermal engine and perfd
+ target.execute("start thermal-engine")
+ target.execute("start perfd")
+
# Dump platform
te.platform_dump(outdir)