arm: Break cyclic percpu include
authorPeter Zijlstra <peterz@infradead.org>
Mon, 22 Jun 2020 15:21:58 +0000 (17:21 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 10 Jul 2020 10:00:02 +0000 (12:00 +0200)
In order to use <asm/percpu.h> in irqflags.h, we need to make sure
asm/percpu.h does not itself depend on irqflags.h.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lkml.kernel.org/r/20200623083721.454517573@infradead.org
arch/arm/include/asm/percpu.h
arch/arm/include/asm/thread_info.h

index f44f448537f215119ddec04890f6f05bd8307238..e2fcb3cfd3de5dbc8727d39e7866a54f41301a01 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef _ASM_ARM_PERCPU_H_
 #define _ASM_ARM_PERCPU_H_
 
+register unsigned long current_stack_pointer asm ("sp");
+
 /*
  * Same as asm-generic/percpu.h, except that we store the per cpu offset
  * in the TPIDRPRW. TPIDRPRW only exists on V6K and V7
index 3609a6980c3420c55d1959e4cb0f13b0f21792d6..536b6b979f634dd7d2ecc78336fa59e2ce87511e 100644 (file)
@@ -75,11 +75,6 @@ struct thread_info {
        .addr_limit     = KERNEL_DS,                                    \
 }
 
-/*
- * how to get the current stack pointer in C
- */
-register unsigned long current_stack_pointer asm ("sp");
-
 /*
  * how to get the thread information struct from C
  */