mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
73fffc037e
Now that we defer the cpu_data() initializations to the end of per-cpu setup, we can get rid of this local hack we had to setup the per-cpu areas eary. This is a necessary step in order to support HAVE_DYNAMIC_PER_CPU_AREA since the per-cpu setup must run when page structs are available. Signed-off-by: David S. Miller <davem@davemloft.net>
25 lines
476 B
C
25 lines
476 B
C
#ifndef __ARCH_SPARC64_PERCPU__
|
|
#define __ARCH_SPARC64_PERCPU__
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
register unsigned long __local_per_cpu_offset asm("g5");
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
#include <asm/trap_block.h>
|
|
|
|
#define __per_cpu_offset(__cpu) \
|
|
(trap_block[(__cpu)].__per_cpu_base)
|
|
#define per_cpu_offset(x) (__per_cpu_offset(x))
|
|
|
|
#define __my_cpu_offset __local_per_cpu_offset
|
|
|
|
#else /* ! SMP */
|
|
|
|
#endif /* SMP */
|
|
|
|
#include <asm-generic/percpu.h>
|
|
|
|
#endif /* __ARCH_SPARC64_PERCPU__ */
|