Name
arch_match_cpu_phys_id —
Check match the given logical CPU and physical id
Synopsis
bool arch_match_cpu_phys_id ( | int cpu, |
| u64 phys_id) ; |
Arguments
cpu
Logical cpu index of a core/thread
phys_id
Physical identifier of a core/thread
Description
CPU logical to physical index mapping is architecture specific.
However this __weak function provides a default match of physical
id to logical cpu index. phys_id
provided here is usually values read
from the device tree which must match the hardware internal registers.
Return
True if the physical identifier and cpu
correspond to the same core/thread, false otherwise.