git: kernel - Implement CHECKTIMEOUT() abstraction
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Oct 31 19:46:36 PDT 2010
commit d8129ed32f842ce396ec6ffef6c37ae4a258bcde
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Oct 31 19:36:11 2010 -0700
kernel - Implement CHECKTIMEOUT() abstraction
* Implement a CHECKTIMEOUT() abstraction which allows us to remove retry
counts from low level device driver loops and replace them with a
timeout polling routine.
* Use in the keyboard code so we no longer make assumptions on how long
it takes to inb/outb the keyboard controller. Some BIOSes do not have
a keyboard controller at all and emulate the ports via SMI, which is
much much slower than accessing a real port.
Summary of changes:
sys/dev/misc/kbd/atkbdc.c | 30 +++++++++++++++---------------
sys/platform/pc32/include/clock.h | 10 ++++++++++
sys/platform/pc32/isa/clock.c | 22 ++++++++++++++++++++++
sys/platform/pc64/include/clock.h | 10 ++++++++++
sys/platform/pc64/isa/clock.c | 27 +++++++++++++++++++++++++++
5 files changed, 84 insertions(+), 15 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d8129ed32f842ce396ec6ffef6c37ae4a258bcde
--
DragonFly BSD source repository
More information about the Commits
mailing list