]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: smp: move the pen to a header file
authorAbhimanyu Kapur <abhimany@codeaurora.org>
Tue, 18 Feb 2014 17:36:37 +0000 (09:36 -0800)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:38 +0000 (09:54 +0000)
Move the secondary_pen_release variable and the secondary_holding_pen
entry function to asm/smp_plat.h so that the other cpu ops implementations
can share them.

Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Signed-off-by: Kumar Gala <galak@codeaurora.org>
arch/arm64/include/asm/smp_plat.h
arch/arm64/kernel/smp.c
arch/arm64/kernel/smp_spin_table.c

index af58dcdefb21a03aafd752d49b0bcbaefc793089..63bea4f70a744f26f13ba2654ef40557561a7618 100644 (file)
@@ -36,6 +36,7 @@ static inline u32 mpidr_hash_size(void)
        return 1 << mpidr_hash.bits;
 }
 
+extern void secondary_holding_pen(void);
 /*
  * Logical CPU mapping.
  */
@@ -55,5 +56,6 @@ static inline int get_logical_index(u64 mpidr)
                        return cpu;
        return -EINVAL;
 }
+extern volatile unsigned long secondary_holding_pen_release;
 
 #endif /* __ASM_SMP_PLAT_H */
index b1adc51b2c2e7682212554ba8276b5e7c25fbff5..67862ea6de0c75ad415a9d9601ee3cb50300697e 100644 (file)
@@ -63,6 +63,7 @@
  * where to place its SVC stack
  */
 struct secondary_data secondary_data;
+volatile unsigned long secondary_holding_pen_release = INVALID_HWID;
 
 enum ipi_msg_type {
        IPI_RESCHEDULE,
index 06eae9db546921ecfcbb01b3cbbf2cd189ae162b..3d5325d99e8ec395666696e2e5c0040ac745eb32 100644 (file)
@@ -28,9 +28,6 @@
 #include <asm/io.h>
 #include <asm/smp_plat.h>
 
-extern void secondary_holding_pen(void);
-volatile unsigned long secondary_holding_pen_release = INVALID_HWID;
-
 static phys_addr_t cpu_release_addr[NR_CPUS];
 
 /*