mirror of
https://github.com/ARM-software/devlib.git
synced 2025-09-07 04:21:54 +01:00
module/hotplug: optimize online_all
Optimize online_all by offloading it to a shutils function which only requres a single call to the target.
This commit is contained in:
@@ -21,7 +21,8 @@ class HotplugModule(Module):
|
||||
return target.path.join(cls.base_path, cpu, 'online')
|
||||
|
||||
def online_all(self):
|
||||
self.online(*range(self.target.number_of_cpus))
|
||||
self.target._execute_util('hotplug_online_all',
|
||||
as_root=self.target.is_rooted)
|
||||
|
||||
def online(self, *args):
|
||||
for cpu in args:
|
||||
|
Reference in New Issue
Block a user