]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
arm64: smp: Moved cpu_logical_map[] to smp.h
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 3 Jun 2019 23:18:29 +0000 (16:18 -0700)
committerWill Deacon <will.deacon@arm.com>
Wed, 5 Jun 2019 12:09:11 +0000 (13:09 +0100)
asm/smp.h is included by linux/smp.h and some drivers, in particular
irqchip drivers can access cpu_logical_map[] in order to perform SMP
affinity tasks. Make arm64 consistent with other architectures here.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/smp.h
arch/arm64/include/asm/smp_plat.h

index 18553f399e083891d9c3552e1b311d296dbe7087..eae2d6c012626310a0180ab017f4deaa7ea946d8 100644 (file)
@@ -53,6 +53,12 @@ DECLARE_PER_CPU_READ_MOSTLY(int, cpu_number);
  */
 #define raw_smp_processor_id() (*raw_cpu_ptr(&cpu_number))
 
+/*
+ * Logical CPU mapping.
+ */
+extern u64 __cpu_logical_map[NR_CPUS];
+#define cpu_logical_map(cpu)    __cpu_logical_map[cpu]
+
 struct seq_file;
 
 /*
index af58dcdefb21a03aafd752d49b0bcbaefc793089..7a495403a18a2d93f5aa02200b367527decc86ed 100644 (file)
@@ -36,11 +36,6 @@ static inline u32 mpidr_hash_size(void)
        return 1 << mpidr_hash.bits;
 }
 
-/*
- * Logical CPU mapping.
- */
-extern u64 __cpu_logical_map[NR_CPUS];
-#define cpu_logical_map(cpu)    __cpu_logical_map[cpu]
 /*
  * Retrieve logical cpu index corresponding to a given MPIDR.Aff*
  *  - mpidr: MPIDR.Aff* bits to be used for the look-up