arm64: topology: Use PPTT to determine if PE is a thread
authorJeremy Linton <jeremy.linton@arm.com>
Mon, 14 Oct 2019 09:56:26 +0000 (17:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2019 20:45:35 +0000 (13:45 -0700)
commita64241ba496c482d2f89115c8b6749ac01079d74
tree1720c45adadefe4958e2c6d24d07f7a32764e9b8
parentb098a4cd99ff353f9f3aa8af789393bf39b3645e
arm64: topology: Use PPTT to determine if PE is a thread

Commit 98dc19902a0b2e5348e43d6a2c39a0a7d0fc639e upstream.

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>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/kernel/topology.c