Skip to content

Commit

Permalink
[MIPS] Make MIPS udelay() preempt safe under DEBUG_PREEMPT
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Lachwani <mlachwani@mvista.com>
Signed-off-by: Deepak Saxena <dsaxena@mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Deepak Saxena authored and Ralf Baechle committed Mar 24, 2007
1 parent c9d0696 commit 83598f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-mips/delay.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 83598f1

Please sign in to comment.