diff options
| author | Jeremy Linton <jeremy.linton@arm.com> | 2019-08-08 16:40:06 -0400 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2019-08-12 07:59:15 -0400 |
| commit | bbd1b70639f785a970d998f35155c713f975e3ac (patch) | |
| tree | 900720fcc2f594cd91330c9005ce3b6a58e89bf0 /include/linux/acpi.h | |
| parent | e21a712a9685488f5ce80495b37b9fdbe96c230d (diff) | |
ACPI/PPTT: Add support for ACPI 6.3 thread flag
ACPI 6.3 adds a flag to the CPU node to indicate whether
the given PE is a thread. Add a function to return that
information for a given linux logical CPU.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Robert Richter <rrichter@marvell.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/acpi.h')
| -rw-r--r-- | include/linux/acpi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 9426b9aaed86..9d0e20a2ac83 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -1302,11 +1302,16 @@ static inline int lpit_read_residency_count_address(u64 *address) | |||
| 1302 | #endif | 1302 | #endif |
| 1303 | 1303 | ||
| 1304 | #ifdef CONFIG_ACPI_PPTT | 1304 | #ifdef CONFIG_ACPI_PPTT |
| 1305 | int acpi_pptt_cpu_is_thread(unsigned int cpu); | ||
| 1305 | int find_acpi_cpu_topology(unsigned int cpu, int level); | 1306 | int find_acpi_cpu_topology(unsigned int cpu, int level); |
| 1306 | int find_acpi_cpu_topology_package(unsigned int cpu); | 1307 | int find_acpi_cpu_topology_package(unsigned int cpu); |
| 1307 | int find_acpi_cpu_topology_hetero_id(unsigned int cpu); | 1308 | int find_acpi_cpu_topology_hetero_id(unsigned int cpu); |
| 1308 | int find_acpi_cpu_cache_topology(unsigned int cpu, int level); | 1309 | int find_acpi_cpu_cache_topology(unsigned int cpu, int level); |
| 1309 | #else | 1310 | #else |
| 1311 | static inline int acpi_pptt_cpu_is_thread(unsigned int cpu) | ||
| 1312 | { | ||
| 1313 | return -EINVAL; | ||
| 1314 | } | ||
| 1310 | static inline int find_acpi_cpu_topology(unsigned int cpu, int level) | 1315 | static inline int find_acpi_cpu_topology(unsigned int cpu, int level) |
| 1311 | { | 1316 | { |
| 1312 | return -EINVAL; | 1317 | return -EINVAL; |
