Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jul 2004 00:51:32 +0000 (UTC)
From:      Nate Lawson <njl@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/acpica acpi_ec.c
Message-ID:  <200407010051.i610pWTU058610@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
njl         2004-07-01 00:51:32 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi_ec.c 
  Log:
  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 fud.org.nz
  
  Revision  Changes    Path
  1.56      +35 -48    src/sys/dev/acpica/acpi_ec.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407010051.i610pWTU058610>