mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
x86/percpu: Define PER_CPU_VAR macro also for !__ASSEMBLY__
Some C source files define 'asm' statements that use PER_CPU_VAR, so make PER_CPU_VAR macro available also without __ASSEMBLY__. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20231105213731.1878100-2-ubizjak@gmail.com
This commit is contained in:
parent
0548eb067e
commit
43bda69ed9
|
|
@ -84,10 +84,15 @@
|
|||
})
|
||||
#endif /* CONFIG_USE_X86_SEG_SUPPORT */
|
||||
|
||||
#define PER_CPU_VAR(var) %__percpu_seg:(var)__percpu_rel
|
||||
|
||||
#else /* CONFIG_SMP */
|
||||
#define __percpu_seg_override
|
||||
#define __percpu_prefix ""
|
||||
#define __force_percpu_prefix ""
|
||||
|
||||
#define PER_CPU_VAR(var) (var)__percpu_rel
|
||||
|
||||
#endif /* CONFIG_SMP */
|
||||
|
||||
#define __my_cpu_type(var) typeof(var) __percpu_seg_override
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user