sconfig: rename lapic_cluster -> cpu_cluster
The name lapic_cluster is a bit misleading, since the construct is not local APIC specific by concept. As implementations and hardware change, be more generic about our naming. This will allow us to support non-x86 systems without adding new keywords. Change-Id: Icd7f5fcf6f54d242eabb5e14ee151eec8d6cceb1 Signed-off-by: Stefan Reinauer <reinauer@google.com> Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2377 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Ronald G. Minnich
parent
398e84c71a
commit
0aa37c488b
@@ -209,9 +209,9 @@ const char *dev_path(device_t dev)
|
||||
sprintf(buffer, "DOMAIN: %04x",
|
||||
dev->path.domain.domain);
|
||||
break;
|
||||
case DEVICE_PATH_APIC_CLUSTER:
|
||||
sprintf(buffer, "APIC_CLUSTER: %01x",
|
||||
dev->path.apic_cluster.cluster);
|
||||
case DEVICE_PATH_CPU_CLUSTER:
|
||||
sprintf(buffer, "CPU_CLUSTER: %01x",
|
||||
dev->path.cpu_cluster.cluster);
|
||||
break;
|
||||
case DEVICE_PATH_CPU:
|
||||
sprintf(buffer, "CPU: %02x", dev->path.cpu.id);
|
||||
@@ -274,9 +274,9 @@ int path_eq(struct device_path *path1, struct device_path *path2)
|
||||
case DEVICE_PATH_DOMAIN:
|
||||
equal = (path1->domain.domain == path2->domain.domain);
|
||||
break;
|
||||
case DEVICE_PATH_APIC_CLUSTER:
|
||||
equal = (path1->apic_cluster.cluster
|
||||
== path2->apic_cluster.cluster);
|
||||
case DEVICE_PATH_CPU_CLUSTER:
|
||||
equal = (path1->cpu_cluster.cluster
|
||||
== path2->cpu_cluster.cluster);
|
||||
break;
|
||||
case DEVICE_PATH_CPU:
|
||||
equal = (path1->cpu.id == path2->cpu.id);
|
||||
@@ -859,7 +859,7 @@ int dev_count_cpu(void)
|
||||
|
||||
for (cpu = all_devices; cpu; cpu = cpu->next) {
|
||||
if ((cpu->path.type != DEVICE_PATH_APIC) ||
|
||||
(cpu->bus->dev->path.type != DEVICE_PATH_APIC_CLUSTER))
|
||||
(cpu->bus->dev->path.type != DEVICE_PATH_CPU_CLUSTER))
|
||||
continue;
|
||||
if (!cpu->enabled)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user