diff options
author | Jiang Liu <jiang.liu@huawei.com> | 2013-09-02 11:57:34 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-24 01:39:39 +0200 |
commit | ca9f62ac783bf88c54143f8065adc0fc8df859c1 (patch) | |
tree | c22585a41438abe61565def29b3a055cb6ebad70 /tools/usb/hcd-tests.sh | |
parent | 4a10c2ac2f368583138b774ca41fac4207911983 (diff) |
ACPI / processor: Introduce apic_id in struct processor to save parsed APIC id
For cpu hot add, we evaluate _MAT or parse MADT twice to get APIC id,
here is the code logic:
acpi_processor_add()
acpi_processor_get_info()
acpi_get_cpuid() will evaluate _MAT or parse MADT;
acpi_processor_hotadd_init()
acpi_map_lsapic() will evaluate _MAT again;
This can be done more effectively, this patch introduces apic_id in struct
processor to save parsed APIC id, and then we can use it and remove the
duplicated _MAT evaluation.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/usb/hcd-tests.sh')
0 files changed, 0 insertions, 0 deletions