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

Nate Lawson njl at FreeBSD.org
Thu Aug 12 23:22:18 PDT 2004


njl         2004-08-13 06:22:17 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi_thermal.c 
  Log:
  MPSAFE locking
  
  * Restructure the event handling path.  acpi_tz_thread() now calls
    acpi_tz_timeout() any time an event occurs.  acpi_tz_timeout() checks
    the flags and calls acpi_tz_power_profile(), acpi_tz_establish(), and
    acpi_tz_monitor() as appropriate.  Notifies only do a wakeup and let
    acpi_tz_thread() do the actual work.  This path is cleaner and allows
    locking since the call path is now always a D.A.G.
  * Add the acpi_tz_signal() function to set flags and wake the thread.
  * Remove the tz_tmp_updating flag since calls are serialized by
    acpi_tz_thread().
  * Remove Giant locking.
  
  Revision  Changes    Path
  1.48      +109 -121  src/sys/dev/acpica/acpi_thermal.c


More information about the cvs-src mailing list