OSDN Git Service

hw/acpi/aml-build: Improve scalability of PPTT generation
authorYanan Wang <wangyanan55@huawei.com>
Fri, 7 Jan 2022 08:32:29 +0000 (16:32 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Jan 2022 11:47:52 +0000 (11:47 +0000)
commit11b9eb1b8a96510508178746b258810392849b20
treedf3888ec721249a81e3adc375817ffffce15e1ed
parent28a60a59c06a13cb8dbbdbc06029f3d2031eb45d
hw/acpi/aml-build: Improve scalability of PPTT generation

Use g_queue APIs to reduce the nested loops and code indentation
with the processor hierarchy levels increasing. Consenquently,
it's more scalable to add new topology level to build_pptt.

No functional change intended.

Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-id: 20220107083232.16256-4-wangyanan55@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/acpi/aml-build.c