projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08b6d29
)
x86: reboot: remove inb_p usage
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Wed, 30 Jan 2008 12:33:25 +0000
(13:33 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:33:25 +0000
(13:33 +0100)
We are driving a motherboard port so use a 2uS explicit delay at this
point.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/reboot.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/reboot.c
b/arch/x86/kernel/reboot.c
index 5b32f0b4d133cac1129d9d166e1d0ffbc1921e81..5818dc28167d71bee82c305a85410192ef59e2b1 100644
(file)
--- a/
arch/x86/kernel/reboot.c
+++ b/
arch/x86/kernel/reboot.c
@@
-319,9
+319,11
@@
static inline void kb_wait(void)
{
int i;
- for (i = 0; i < 0x10000; i++)
- if ((inb
_p
(0x64) & 0x02) == 0)
+ for (i = 0; i < 0x10000; i++)
{
+ if ((inb(0x64) & 0x02) == 0)
break;
+ udelay(2);
+ }
}
void machine_emergency_restart(void)