diff options
Diffstat (limited to 'src/device/device_util.c')
-rw-r--r-- | src/device/device_util.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c index 1e13bca151..0be6cfbf36 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -917,10 +917,7 @@ int dev_count_cpu(void) int count = 0; for (cpu = all_devices; cpu; cpu = cpu->next) { - if ((cpu->path.type != DEVICE_PATH_APIC) || - (cpu->bus->dev->path.type != DEVICE_PATH_CPU_CLUSTER)) - continue; - if (!cpu->enabled) + if (!is_enabled_cpu(cpu)) continue; count++; } |