|
@@ -15,18 +15,20 @@
|
|
|
|
|
|
#include <linux/threads.h>
|
|
#include <linux/threads.h>
|
|
|
|
|
|
|
|
+#ifdef CONFIG_SMP
|
|
|
|
+
|
|
#ifdef HAVE_MODEL_SMALL_ATTRIBUTE
|
|
#ifdef HAVE_MODEL_SMALL_ATTRIBUTE
|
|
# define PER_CPU_ATTRIBUTES __attribute__((__model__ (__small__)))
|
|
# define PER_CPU_ATTRIBUTES __attribute__((__model__ (__small__)))
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_SMP
|
|
|
|
-
|
|
|
|
#define __my_cpu_offset __ia64_per_cpu_var(local_per_cpu_offset)
|
|
#define __my_cpu_offset __ia64_per_cpu_var(local_per_cpu_offset)
|
|
|
|
|
|
extern void *per_cpu_init(void);
|
|
extern void *per_cpu_init(void);
|
|
|
|
|
|
#else /* ! SMP */
|
|
#else /* ! SMP */
|
|
|
|
|
|
|
|
+#define PER_CPU_ATTRIBUTES __attribute__((__section__(".data.percpu")))
|
|
|
|
+
|
|
#define per_cpu_init() (__phys_per_cpu_start)
|
|
#define per_cpu_init() (__phys_per_cpu_start)
|
|
|
|
|
|
#endif /* SMP */
|
|
#endif /* SMP */
|