repo.or.cz
/
linux-2.6
/
linux-acpi-2.6
/
ibm-acpi-2.6.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
score: Add support for Sunplus S+core architecture
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git]
/
arch
/
score
/
include
/
asm
/
delay.h
blob
ad716f6d922d20f31232e4ed598909050061158c
1
#ifndef _ASM_SCORE_DELAY_H
2
#define _ASM_SCORE_DELAY_H
3
4
static
inline
void
__delay
(
unsigned long
loops
)
5
{
6
__asm__
__volatile__
(
7
"1:
\t
subi
\t
%0,1
\n\t
"
8
"cmpz.c
\t
%0
\n\t
"
9
"bne
\t
1b
\n\t
"
10
:
"=r"
(
loops
)
11
:
"0"
(
loops
));
12
}
13
14
static
inline
void
__udelay
(
unsigned long
usecs
)
15
{
16
__delay
(
usecs
);
17
}
18
19
#define udelay(usecs) __udelay(usecs)
20
21
#endif
/* _ASM_SCORE_DELAY_H */