]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedf12057da6653a470df0e2ffdd15fc9f2fbc5d1
tree257183e6410787e0e9321c5de9d80be76810d6ab
parent0adfdbe57c2ad476fdae1f759bd2e40fc6b35752
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