Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57fa8baf authored by Abhimanyu Kapur's avatar Abhimanyu Kapur
Browse files

arm64: smp: move the pen to a header file



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.

Change-Id: I9cee3e01185df5e9977795cc778848d91d370b70
Signed-off-by: default avatarAbhimanyu Kapur <abhimany@codeaurora.org>
parent 8ffdf50a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,10 +34,12 @@ static inline u32 mpidr_hash_size(void)
	return 1 << mpidr_hash.bits;
}

extern void secondary_holding_pen(void);
/*
 * Logical CPU mapping.
 */
extern u64 __cpu_logical_map[NR_CPUS];
#define cpu_logical_map(cpu)    __cpu_logical_map[cpu]
extern volatile unsigned long secondary_holding_pen_release;

#endif /* __ASM_SMP_PLAT_H */
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,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,
+0 −3
Original line number Diff line number Diff line
@@ -26,9 +26,6 @@
#include <asm/cputype.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];
static DEFINE_RAW_SPINLOCK(boot_lock);