1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-04 12:22:41 +01:00

target/runtime_config: Add support for stay-on

Adds runtime config support for the android setting
``stay_on_while_plugged_in``.
This commit is contained in:
Jonathan Paynter
2020-08-11 12:24:29 +01:00
committed by Marc Bonnici
parent 7bea3a69bb
commit ba5a65aad7
2 changed files with 33 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ class TargetManager(object):
def initialize(self):
self._init_target()
self.assistant.initialize()
# If target supports hotplugging, online all cpus before perform discovery
# and restore original configuration after completed.
@@ -77,6 +78,7 @@ class TargetManager(object):
def finalize(self):
if not self.target:
return
self.assistant.finalize()
if self.disconnect or isinstance(self.target.platform, Gem5SimulationPlatform):
self.logger.info('Disconnecting from the device')
with signal.wrap('TARGET_DISCONNECT'):