Commit 83598f1c authored by Deepak Saxena's avatar Deepak Saxena Committed by Ralf Baechle

[MIPS] Make MIPS udelay() preempt safe under DEBUG_PREEMPT

Signed-off-by: default avatarManish Lachwani <mlachwani@mvista.com>
Signed-off-by: default avatarDeepak Saxena <dsaxena@mvista.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c9d06962
...@@ -79,7 +79,7 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj) ...@@ -79,7 +79,7 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj)
__delay(usecs); __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) #define udelay(usecs) __udelay((usecs),__udelay_val)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment