diff options
Diffstat (limited to 'drivers/acpi/pptt.c')
-rw-r--r-- | drivers/acpi/pptt.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/acpi/pptt.c b/drivers/acpi/pptt.c index 05344413f199..1e7ac0bd0d3a 100644 --- a/drivers/acpi/pptt.c +++ b/drivers/acpi/pptt.c | |||
@@ -683,3 +683,29 @@ int find_acpi_cpu_topology_package(unsigned int cpu) | |||
683 | return find_acpi_cpu_topology_tag(cpu, PPTT_ABORT_PACKAGE, | 683 | return find_acpi_cpu_topology_tag(cpu, PPTT_ABORT_PACKAGE, |
684 | ACPI_PPTT_PHYSICAL_PACKAGE); | 684 | ACPI_PPTT_PHYSICAL_PACKAGE); |
685 | } | 685 | } |
686 | |||
687 | /** | ||
688 | * find_acpi_cpu_topology_hetero_id() - Get a core architecture tag | ||
689 | * @cpu: Kernel logical CPU number | ||
690 | * | ||
691 | * Determine a unique heterogeneous tag for the given CPU. CPUs with the same | ||
692 | * implementation should have matching tags. | ||
693 | * | ||
694 | * The returned tag can be used to group peers with identical implementation. | ||
695 | * | ||
696 | * The search terminates when a level is found with the identical implementation | ||
697 | * flag set or we reach a root node. | ||
698 | * | ||
699 | * Due to limitations in the PPTT data structure, there may be rare situations | ||
700 | * where two cores in a heterogeneous machine may be identical, but won't have | ||
701 | * the same tag. | ||
702 | * | ||
703 | * Return: -ENOENT if the PPTT doesn't exist, or the CPU cannot be found. | ||
704 | * Otherwise returns a value which represents a group of identical cores | ||
705 | * similar to this CPU. | ||
706 | */ | ||
707 | int find_acpi_cpu_topology_hetero_id(unsigned int cpu) | ||
708 | { | ||
709 | return find_acpi_cpu_topology_tag(cpu, PPTT_ABORT_PACKAGE, | ||
710 | ACPI_PPTT_ACPI_IDENTICAL); | ||
711 | } | ||