OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import atexit | 5 import atexit |
6 import logging | 6 import logging |
7 | 7 |
8 from devil.android import device_errors | 8 from devil.android import device_errors |
9 | 9 |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 """ | 147 """ |
148 if self._have_mpdecision: | 148 if self._have_mpdecision: |
149 script = 'stop mpdecision' if force_online else 'start mpdecision' | 149 script = 'stop mpdecision' if force_online else 'start mpdecision' |
150 self._device.RunShellCommand(script, check_return=True, as_root=True) | 150 self._device.RunShellCommand(script, check_return=True, as_root=True) |
151 | 151 |
152 if not self._have_mpdecision and not self._AllCpusAreOnline(): | 152 if not self._have_mpdecision and not self._AllCpusAreOnline(): |
153 logging.warning('Unexpected cpu hot plugging detected.') | 153 logging.warning('Unexpected cpu hot plugging detected.') |
154 | 154 |
155 if force_online: | 155 if force_online: |
156 self._ForEachCpu('echo 1 > "$CPU/online"') | 156 self._ForEachCpu('echo 1 > "$CPU/online"') |
OLD | NEW |