From: Deepak Saxena Date: Mon, 19 Mar 2007 23:49:45 +0000 (-0700) Subject: [MIPS] Make MIPS udelay() preempt safe under DEBUG_PREEMPT X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=83598f1cb06101e972b1f5aaf3408eb729622fa8;p=linux-beck.git [MIPS] Make MIPS udelay() preempt safe under DEBUG_PREEMPT Signed-off-by: Manish Lachwani Signed-off-by: Deepak Saxena Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/delay.h b/include/asm-mips/delay.h index ea77050f8e3a..223d156efb9f 100644 --- a/include/asm-mips/delay.h +++ b/include/asm-mips/delay.h @@ -79,7 +79,7 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj) __delay(usecs); } -#define __udelay_val cpu_data[smp_processor_id()].udelay_val +#define __udelay_val cpu_data[raw_smp_processor_id()].udelay_val #define udelay(usecs) __udelay((usecs),__udelay_val)