diff options
-rw-r--r-- | arch/arm/kernel/devtree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c index 5859c8bc727c..2ee8a17d2b01 100644 --- a/arch/arm/kernel/devtree.c +++ b/arch/arm/kernel/devtree.c | |||
@@ -169,6 +169,11 @@ void __init arm_dt_init_cpu_maps(void) | |||
169 | } | 169 | } |
170 | } | 170 | } |
171 | 171 | ||
172 | bool arch_match_cpu_phys_id(int cpu, u64 phys_id) | ||
173 | { | ||
174 | return (phys_id & MPIDR_HWID_BITMASK) == cpu_logical_map(cpu); | ||
175 | } | ||
176 | |||
172 | /** | 177 | /** |
173 | * setup_machine_fdt - Machine setup when an dtb was passed to the kernel | 178 | * setup_machine_fdt - Machine setup when an dtb was passed to the kernel |
174 | * @dt_phys: physical address of dt blob | 179 | * @dt_phys: physical address of dt blob |