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

Nate Lawson njl at FreeBSD.org
Thu Aug 12 23:21:44 PDT 2004


njl         2004-08-13 06:21:44 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi_cmbat.c 
  Log:
  MPSAFE locking
  
  * Serialize ops in acpi_cmbat_notify_handler(), acpi_cmbat_ioctl(),
    acpi_cmbat_init_battery(), and acpi_cmbat_get_battinfo().
  * Get the softc directly in acpi_cmbat_get_total_battinfo() rather than
    build an array of them.
  * Don't queue a _BIF query after receiving a notify.  Since we clear the
    timespec, a _BIF query will be done in the context of the next caller.
  * Add asserts to leaf functions that operate on shared data.
  * Remove the bst/bif updating flags now that we hold the lock over the
    full query.
  * Explain various comments in more detail.
  
  Revision  Changes    Path
  1.35      +125 -169  src/sys/dev/acpica/acpi_cmbat.c


More information about the cvs-all mailing list