~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/um/include/asm/delay.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __UM_DELAY_H
 
2
#define __UM_DELAY_H
 
3
 
 
4
/* Undefined on purpose */
 
5
extern void __bad_udelay(void);
 
6
extern void __bad_ndelay(void);
 
7
 
 
8
extern void __udelay(unsigned long usecs);
 
9
extern void __ndelay(unsigned long usecs);
 
10
extern void __delay(unsigned long loops);
 
11
 
 
12
#define udelay(n) ((__builtin_constant_p(n) && (n) > 20000) ? \
 
13
        __bad_udelay() : __udelay(n))
 
14
 
 
15
#define ndelay(n) ((__builtin_constant_p(n) && (n) > 20000) ? \
 
16
        __bad_ndelay() : __ndelay(n))
 
17
 
 
18
#endif