cvs commit: src/sys/dev/acpica acpi_ec.c

Nate Lawson njl at
Wed Jun 30 17:51:36 PDT 2004

njl         2004-07-01 00:51:32 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi_ec.c 
  Rework the code that waits for a response from the EC.  Use an sx lock
  instead of a mutex so we do not unblock it in msleep().  If we do this,
  another event could occur, resetting the status register since reads
  reset it.  While I'm here, remove the backoff approach.  Instead, sleep
  in 10 ms chunks for up to the configured timeout using either DELAY (if
  we aren't booted yet) or tsleep.
  Help from:      dillon
  Tested by:      Andrew Thompson andy AT
  Revision  Changes    Path
  1.56      +35 -48    src/sys/dev/acpica/acpi_ec.c

More information about the cvs-src mailing list