diff options
author | Hongbo Zhang <hongbo.zhang@linaro.com> | 2013-01-21 16:32:25 +0800 |
---|---|---|
committer | Hongbo Zhang <hongbo.zhang@linaro.com> | 2013-01-21 16:32:25 +0800 |
commit | 0f6d3c9f14096a123be1e37a5edeaa5c88f830be (patch) | |
tree | 44ecabc14f01a753093daf17a8487acaa7bf92be | |
parent | 82fbd05c8048eeddde522b1e666eb0e116078be0 (diff) |
thermal: enable launching glmark2 in Android
Enable launching glmark2 in Android to heat GPU as one of thermal tests.
Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.com>
-rw-r--r-- | include/thermal_functions.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/thermal_functions.sh b/include/thermal_functions.sh index df7adfe..8a4d627 100644 --- a/include/thermal_functions.sh +++ b/include/thermal_functions.sh @@ -243,6 +243,11 @@ GPU_HEAT_BIN=/usr/bin/glmark2 gpu_pid=0 start_glmark2() { + if [ -n "$ANDROID" ]; then + am start org.linaro.glmark2/.Glmark2Activity + return + fi + if [ -x $GPU_HEAT_BIN ]; then $GPU_HEAT_BIN & gpu_pid=$(pidof $GPU_HEAT_BIN) @@ -265,6 +270,11 @@ start_glmark2() { } kill_glmark2() { + if [ -n "$ANDROID" ]; then + am kill org.linaro.glmark2 + return + fi + if [ "$gpu_pid" != 0 ]; then kill -9 $gpu_pid fi |