hv.py: remove secondary CPU cores unconditionally from the ADT

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2021-06-12 11:19:11 +02:00 committed by Hector Martin
parent 98076ef693
commit d88e255c56

View file

@ -912,19 +912,19 @@ class HV(Reloadable):
del self.adt[name]
except KeyError:
pass
for name in ("/cpus/cpu1",
"/cpus/cpu2",
"/cpus/cpu3",
"/cpus/cpu4",
"/cpus/cpu5",
"/cpus/cpu6",
"/cpus/cpu7",
):
print(f"Removing ADT node {name}")
try:
del self.adt[name]
except KeyError:
pass
for name in ("/cpus/cpu1",
"/cpus/cpu2",
"/cpus/cpu3",
"/cpus/cpu4",
"/cpus/cpu5",
"/cpus/cpu6",
"/cpus/cpu7",
):
print(f"Removing ADT node {name}")
try:
del self.adt[name]
except KeyError:
pass
#for cpu in list(self.adt["cpus"]):
#if cpu.name != "cpu0":