Skip to content

Commit a634291

Browse files
author
Peter Zijlstra
committed
arm: Break cyclic percpu include
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) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 28e5bfd commit a634291

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

arch/arm/include/asm/percpu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#ifndef _ASM_ARM_PERCPU_H_
66
#define _ASM_ARM_PERCPU_H_
77

8+
register unsigned long current_stack_pointer asm ("sp");
9+
810
/*
911
* Same as asm-generic/percpu.h, except that we store the per cpu offset
1012
* in the TPIDRPRW. TPIDRPRW only exists on V6K and V7

arch/arm/include/asm/thread_info.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ struct thread_info {
7575
.addr_limit = KERNEL_DS, \
7676
}
7777

78-
/*
79-
* how to get the current stack pointer in C
80-
*/
81-
register unsigned long current_stack_pointer asm ("sp");
82-
8378
/*
8479
* how to get the thread information struct from C
8580
*/

0 commit comments

Comments
 (0)