sparc64: Get rid of real_setup_per_cpu_areas().
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>
This commit is contained in:
@@ -9,8 +9,6 @@ register unsigned long __local_per_cpu_offset asm("g5");
|
||||
|
||||
#include <asm/trap_block.h>
|
||||
|
||||
extern void real_setup_per_cpu_areas(void);
|
||||
|
||||
#define __per_cpu_offset(__cpu) \
|
||||
(trap_block[(__cpu)].__per_cpu_base)
|
||||
#define per_cpu_offset(x) (__per_cpu_offset(x))
|
||||
@@ -19,8 +17,6 @@ extern void real_setup_per_cpu_areas(void);
|
||||
|
||||
#else /* ! SMP */
|
||||
|
||||
#define real_setup_per_cpu_areas() do { } while (0)
|
||||
|
||||
#endif /* SMP */
|
||||
|
||||
#include <asm-generic/percpu.h>
|
||||
|
Reference in New Issue
Block a user