git: kernel - Implement CHECKTIMEOUT() abstraction

看板DFBSD_commit作者時間15年前 (2010/11/20 09:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CvoL5xZ (DFBSD_commit)