]> Pileus Git - ~andy/linux/blobdiff - include/asm-ia64/percpu.h
ia64: on UP percpu variables are not small memory model
[~andy/linux] / include / asm-ia64 / percpu.h
index 26404b77f007b6029e4fba1fc276c36ec604cbc0..77f30b664b4eade81ca0985be35d97825fe0a3a8 100644 (file)
 
 #include <linux/threads.h>
 
+#ifdef CONFIG_SMP
+
 #ifdef HAVE_MODEL_SMALL_ATTRIBUTE
 # define PER_CPU_ATTRIBUTES    __attribute__((__model__ (__small__)))
 #endif
 
-#ifdef CONFIG_SMP
-
 #define __my_cpu_offset        __ia64_per_cpu_var(local_per_cpu_offset)
 
 extern void *per_cpu_init(void);
 
 #else /* ! SMP */
 
+#define PER_CPU_ATTRIBUTES     __attribute__((__section__(".data.percpu")))
+
 #define per_cpu_init()                         (__phys_per_cpu_start)
 
 #endif /* SMP */