Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev/acpi



Module Name:    src
Committed By:   tshiozak
Date:           Fri Feb 14 11:05:40 UTC 2003

Modified Files:
        src/sys/dev/acpi: acpi.c acpi_ec.c acpivar.h

Log Message:
- add acpi_acquire_global_lock()/acpi_release_global_lock()/
  acpi_is_global_locked() functions.
  AcpiGlobalLock() API should be used to acquire lock between BIOS and OS.
  This API cannot be used to lock between threads of the OS side,
  because this function immediately returns if the lock is already acquired
  by the OS.  c.f. AcpiEvAcquireGlobalLock()@evmisc.c

- make sure that acpiec driver uses above functions.

- use ACPI_ALLOCATE_BUFFER instead of twice calls of AcpiEvaluateObject(),
  in acpi_eval_string()/acpi_eval_struct().
  Twice AcpiEvaluateObject() calls may cause twice side effects
  to ACPI machine / hardware and this may be wrong in some cases.


To generate a diff of this commit:
cvs rdiff -r1.31 -r1.32 src/sys/dev/acpi/acpi.c
cvs rdiff -r1.8 -r1.9 src/sys/dev/acpi/acpi_ec.c src/sys/dev/acpi/acpivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index