Message ID | alpine.LFD.2.03.1306031339010.1200@syhkavp.arg (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/include/asm/percpu.h b/arch/arm/include/asm/percpu.h index 968c0a14e0..52f9ca33e7 100644 --- a/arch/arm/include/asm/percpu.h +++ b/arch/arm/include/asm/percpu.h @@ -31,7 +31,9 @@ static inline unsigned long __my_cpu_offset(void) { unsigned long off; /* Read TPIDRPRW */ - asm("mrc p15, 0, %0, c13, c0, 4" : "=r" (off) : : "memory"); + asm("mrc p15, 0, %0, c13, c0, 4" + : "=r" (off) + : "m" (current_thread_info()->preempt_count)); return off; } #define __my_cpu_offset __my_cpu_offset()