ACPI/PPTT: Add function to return ACPI 6.3 Identical tokens
authorJeremy Linton <jeremy.linton@arm.com>
Wed, 26 Jun 2019 21:37:16 +0000 (16:37 -0500)
committerWill Deacon <will@kernel.org>
Thu, 27 Jun 2019 15:53:18 +0000 (16:53 +0100)
commit56855a99f3d0d1e9f1f4e24f5851f9bf14c83296
tree32211f461b703b6145dd9348caf70d6aa6d0c6e3
parented2b664fcc8073c09394393756df3fc86977bbac
ACPI/PPTT: Add function to return ACPI 6.3 Identical tokens

ACPI 6.3 adds a flag to indicate that child nodes are all
identical cores. This is useful to authoritatively determine
if a set of (possibly offline) cores are identical or not.

Since the flag doesn't give us a unique id we can generate
one and use it to create bitmaps of sibling nodes, or simply
in a loop to determine if a subset of cores are identical.

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/acpi/pptt.c
include/linux/acpi.h