pc: acpi: drop cpu->found_cpus bitmap
commitadcb89d55d70dee9994465385bbf6e885412cc1b
authorIgor Mammedov <imammedo@redhat.com>
Fri, 26 Feb 2016 13:59:26 +0000 (26 14:59 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 14:59:12 +0000 (11 16:59 +0200)
treec62f3c9c3feb26bd563ef49683c2569df9ccf962
parent2adba0a18a7950d14827e82d8068c1142ee87789
pc: acpi: drop cpu->found_cpus bitmap

cpu->found_cpus bitmap is used for setting present
flag in CPON AML package. But it takes a bunch of code
to fill bitmap and could be simplified by getting
presense info from possible CPUs list directly.

So drop cpu->found_cpus bitmap and unroll possible
CPUs list into APIC index array at the place where
CPUON AML package is created.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
hw/i386/acpi-build.c