arm64: topology: Use PPTT to determine if PE is a thread
authorJeremy Linton <jeremy.linton@arm.com>
Thu, 8 Aug 2019 20:40:07 +0000 (15:40 -0500)
committerWill Deacon <will@kernel.org>
Mon, 12 Aug 2019 17:00:08 +0000 (18:00 +0100)
commit98dc19902a0b2e5348e43d6a2c39a0a7d0fc639e
tree257183e6410787e0e9321c5de9d80be76810d6ab
parentbbd1b70639f785a970d998f35155c713f975e3ac
arm64: topology: Use PPTT to determine if PE is a thread

ACPI 6.3 adds a thread flag to represent if a CPU/PE is
actually a thread. Given that the MPIDR_MT bit may not
represent this information consistently on homogeneous machines
we should prefer the PPTT flag if its available.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Robert Richter <rrichter@marvell.com>
[will: made acpi_cpu_is_threaded() return 'bool']
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/topology.c