diff options
| author | Catalin Marinas <[email protected]> | 2015-03-24 14:02:46 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2015-03-26 15:12:51 +0000 |
| commit | 828aef376d7a129547bc4ebb949965040177e3da (patch) | |
| tree | f4fd8bf12e062dfd646b139466e781d3d67c7c6b /tools/perf/scripts/python/netdev-times.py | |
| parent | fccb9a81fd08b61bed91ddef88341694f8ecbfd1 (diff) | |
ACPI / processor: Introduce phys_cpuid_t for CPU hardware ID
CPU hardware ID (phys_id) is defined as u32 in structure acpi_processor,
but phys_id is used as int in acpi processor driver, so it will lead to
some inconsistence for the drivers.
Furthermore, to cater for ACPI arch ports that implement 64 bits CPU
ids a generic CPU physical id type is required.
So introduce typedef u32 phys_cpuid_t in a common file, and introduce
a macro PHYS_CPUID_INVALID as (phys_cpuid_t)(-1) if it's not defined
by other archs, this will solve the inconsistence in acpi processor driver,
and will prepare for the ACPI on ARM64 for the 64 bit CPU hardware ID
in the following patch.
CC: Rafael J Wysocki <[email protected]>
Suggested-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Grant Likely <[email protected]>
Acked-by: Sudeep Holla <[email protected]>
Acked-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
[hj: reworked cpu physid map return codes]
Signed-off-by: Hanjun Guo <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions