DragonFly commits List (threaded) for 2010-10
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Implement CHECKTIMEOUT() abstraction
commit d8129ed32f842ce396ec6ffef6c37ae4a258bcde
Author: Matthew Dillon <dillon@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]