]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-generic/percpu.h
percpu: fix DEBUG_PREEMPT per_cpu checking
[linux-2.6-omap-h63xx.git] / include / asm-generic / percpu.h
index 4b8d31cda1a01b1c9bee8e5c4b1810c89fdd0119..b0e63c672ebdf5a065ddea3374558a9638bc43c1 100644 (file)
@@ -32,6 +32,8 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
  */
 #ifndef __my_cpu_offset
 #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
+#endif
+#ifdef CONFIG_DEBUG_PREEMPT
 #define my_cpu_offset per_cpu_offset(smp_processor_id())
 #else
 #define my_cpu_offset __my_cpu_offset