Skip to content

Commit 4719ffe

Browse files
Brian GerstKAGA-KOKO
authored andcommitted
x86/percpu: Remove unused PER_CPU() macro
Also remove now unused __percpu_mov_op. Signed-off-by: Brian Gerst <[email protected]> Signed-off-by: Nick Desaulniers <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Nick Desaulniers <[email protected]> Tested-by: Sedat Dilek <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Linus Torvalds <[email protected]> Acked-by: Dennis Zhou <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent c94055f commit 4719ffe

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

arch/x86/include/asm/percpu.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,15 @@
44

55
#ifdef CONFIG_X86_64
66
#define __percpu_seg gs
7-
#define __percpu_mov_op movq
87
#else
98
#define __percpu_seg fs
10-
#define __percpu_mov_op movl
119
#endif
1210

1311
#ifdef __ASSEMBLY__
1412

15-
/*
16-
* PER_CPU finds an address of a per-cpu variable.
17-
*
18-
* Args:
19-
* var - variable name
20-
* reg - 32bit register
21-
*
22-
* The resulting address is stored in the "reg" argument.
23-
*
24-
* Example:
25-
* PER_CPU(cpu_gdt_descr, %ebx)
26-
*/
2713
#ifdef CONFIG_SMP
28-
#define PER_CPU(var, reg) \
29-
__percpu_mov_op %__percpu_seg:this_cpu_off, reg; \
30-
lea var(reg), reg
3114
#define PER_CPU_VAR(var) %__percpu_seg:var
3215
#else /* ! SMP */
33-
#define PER_CPU(var, reg) __percpu_mov_op $var, reg
3416
#define PER_CPU_VAR(var) var
3517
#endif /* SMP */
3618

0 commit comments

Comments
 (0)