projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df38525
)
rombios/keyboard: Don't needlessly poll the status register
author
Andrew Cooper
<andrew.cooper3@citrix.com>
Tue, 6 Aug 2013 13:48:36 +0000
(14:48 +0100)
committer
Ian Campbell
<ian.campbell@citrix.com>
Thu, 8 Aug 2013 11:03:09 +0000
(12:03 +0100)
Repeated polling of the status register is not going to change its value, so
don't needlessly take 8192 traps to Qemu when 1 will do.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
tools/firmware/rombios/rombios.c
patch
|
blob
|
history
diff --git
a/tools/firmware/rombios/rombios.c
b/tools/firmware/rombios/rombios.c
index 80980b67f8f38e9238cb88c04aad29a6b8c84798..e364759b3b4ed5b0637a847a49288815d836d38a 100644
(file)
--- a/
tools/firmware/rombios/rombios.c
+++ b/
tools/firmware/rombios/rombios.c
@@
-1805,12
+1805,12
@@
keyboard_init()
while ( (inb(0x64) & 0x02) && (--max>0)) outb(0x80, 0x00);
/* flush incoming keys */
- max=
0x2000
;
+ max=
2
;
while (--max > 0) {
outb(0x80, 0x00);
if (inb(0x64) & 0x01) {
inb(0x60);
- max =
0x2000
;
+ max =
2
;
}
}