| Index: build/android/pylib/perf/perf_control.py
|
| diff --git a/build/android/pylib/perf/perf_control.py b/build/android/pylib/perf/perf_control.py
|
| index 1c88945e2d19592203af90aeca57df9fef0c0382..3d140598168ee60cc33750f850407f84fea0062e 100644
|
| --- a/build/android/pylib/perf/perf_control.py
|
| +++ b/build/android/pylib/perf/perf_control.py
|
| @@ -73,11 +73,11 @@ class PerfControl(object):
|
| """
|
| def ForceCpuOnline(online_path):
|
| script = 'chmod 644 {0}; echo 1 > {0}; chmod 444 {0}'.format(online_path)
|
| - self._device.RunShellCommand(script, root=True)
|
| + self._device.RunShellCommand(script, as_root=True)
|
| return self._device.old_interface.GetFileContents(online_path)[0] == '1'
|
|
|
| def ResetCpu(online_path):
|
| - self._device.RunShellCommand('chmod 644 %s' % online_path, root=True)
|
| + self._device.RunShellCommand('chmod 644 %s' % online_path, as_root=True)
|
|
|
| def WaitFor(condition):
|
| for _ in range(100):
|
|
|