Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
c573e654 |
| 22-Dec-2001 |
Mitsuru IWASAKI <iwasaki@FreeBSD.org> |
Add OS layer ACPI mutex and threading support. - Temporary fix a bug of Intel ACPI CA core code. - Add OS layer ACPI mutex support. This can be disabled by specifying option ACPI_NO_SEMAPHORES.
Add OS layer ACPI mutex and threading support. - Temporary fix a bug of Intel ACPI CA core code. - Add OS layer ACPI mutex support. This can be disabled by specifying option ACPI_NO_SEMAPHORES. - Add ACPI threading support. Now that we have a dedicate taskqueue for ACPI tasks and more ACPI task threads can be created by specifying option ACPI_MAX_THREADS. - Change acpi_EvaluateIntoBuffer() behavior slightly to reuse given caller's buffer unless AE_BUFFER_OVERFLOW occurs. Also CM battery's evaluations were changed to use acpi_EvaluateIntoBuffer(). - Add new utility function acpi_ConvertBufferToInteger(). - Add simple locking for CM battery and temperature updating. - Fix a minor problem on EC locking. - Make the thermal zone polling rate to be changeable. - Change minor things on AcpiOsSignal(); in ACPI_SIGNAL_FATAL case, entering Debugger is easier to investigate the problem rather than panic.
show more ...
|
#
9d839ea8 |
| 21-Jul-2001 |
Mike Smith <msmith@FreeBSD.org> |
Update the OSD module to match the ACPI CA 20010717 import.
Submitted by: "Grover, Andrew" <andrew.grover@intel.com> (OsdHardware.c)
|
#
4fa8ded9 |
| 30-May-2001 |
Mike Smith <msmith@FreeBSD.org> |
What I get for "fixing" at the last minute. Correct a mis-merge of takawata's timeout fix and put proc.h into the right file.
Submitted by: nnd@mail.nsk.ru
|
#
2a4ac806 |
| 29-May-2001 |
Mike Smith <msmith@FreeBSD.org> |
- Updates for new constant naming in the ACPI CA 20010518 update. - Use __func__ instead of __FUNCTION. - Support power-off to S3 or S5 (takawata) - Enable ACPI debugging earlier (with a sysinit)
- Updates for new constant naming in the ACPI CA 20010518 update. - Use __func__ instead of __FUNCTION. - Support power-off to S3 or S5 (takawata) - Enable ACPI debugging earlier (with a sysinit) - Fix a deadlock in the EC code (takawata) - Improve arithmetic and reduce the risk of spurious wakeup in AcpiOsSleep. - Add AcpiOsGetThreadId. - Simplify mutex code (still disabled).
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
f34fa851 |
| 28-Mar-2001 |
John Baldwin <jhb@FreeBSD.org> |
Catch up to header include changes: - <sys/mutex.h> now requires <sys/systm.h> - <sys/mutex.h> and <sys/sx.h> now require <sys/lock.h>
|
#
9ed346ba |
| 09-Feb-2001 |
Bosko Milekic <bmilekic@FreeBSD.org> |
Change and clean the mutex lock interface.
mtx_enter(lock, type) becomes:
mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks) mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized)
simil
Change and clean the mutex lock interface.
mtx_enter(lock, type) becomes:
mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks) mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized)
similarily, for releasing a lock, we now have:
mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN. We change the caller interface for the two different types of locks because the semantics are entirely different for each case, and this makes it explicitly clear and, at the same time, it rids us of the extra `type' argument.
The enter->lock and exit->unlock change has been made with the idea that we're "locking data" and not "entering locked code" in mind.
Further, remove all additional "flags" previously passed to the lock acquire/release routines with the exception of two:
MTX_QUIET and MTX_NOSWITCH
The functionality of these flags is preserved and they can be passed to the lock/unlock routines by calling the corresponding wrappers:
mtx_{lock, unlock}_flags(lock, flag(s)) and mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN locks, respectively.
Re-inline some lock acq/rel code; in the sleep lock case, we only inline the _obtain_lock()s in order to ensure that the inlined code fits into a cache line. In the spin lock case, we inline recursion and actually only perform a function call if we need to spin. This change has been made with the idea that we generally tend to avoid spin locks and that also the spin locks that we do have and are heavily used (i.e. sched_lock) do recurse, and therefore in an effort to reduce function call overhead for some architectures (such as alpha), we inline recursion for this case.
Create a new malloc type for the witness code and retire from using the M_DEV type. The new type is called M_WITNESS and is only declared if WITNESS is enabled.
Begin cleaning up some machdep/mutex.h code - specifically updated the "optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently need those.
Finally, caught up to the interface changes in all sys code.
Contributors: jake, jhb, jasone (in no particular order)
show more ...
|
#
9453136d |
| 31-Jan-2001 |
Mike Smith <msmith@FreeBSD.org> |
Add some debugging.
Turn off semaphores. Nobody else implements them, and there is lots of AML out there which does totally absurd things with them, meaning that if we try to do the right thing we
Add some debugging.
Turn off semaphores. Nobody else implements them, and there is lots of AML out there which does totally absurd things with them, meaning that if we try to do the right thing we are guaranteed to fail.
show more ...
|
#
0c645db4 |
| 22-Jan-2001 |
Mike Smith <msmith@FreeBSD.org> |
Plug a memory leak in AcpiOsDeleteSemaphore where the mutex is not properly destroyed.
Submitted by: bmilekic
|
#
e0b349e6 |
| 08-Dec-2000 |
Mike Smith <msmith@FreeBSD.org> |
Staticise some malloc pools
Submitted by: phk
|
Revision tags: release/4.2.0 |
|
#
fd660059 |
| 28-Oct-2000 |
Mike Smith <msmith@FreeBSD.org> |
FreeBSD-specific OSD (operating system dependant) modules for the Intel ACPICA code.
|
#
09c817ba |
| 03-Jul-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- MFC
|
#
435f8ce5 |
| 22-Jun-2009 |
Jung-uk Kim <jkim@FreeBSD.org> |
Add a missing return in NULL mutex case.
Submitted by: Pawel Worach (pawel dot worach at gmail dot com)
|
#
7e857dd1 |
| 12-Jun-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- Merge from HEAD
|
#
c930b91c |
| 08-Jun-2009 |
Jung-uk Kim <jkim@FreeBSD.org> |
Remove redundant checks for ACPI_WAIT_FOREVER cases.
|
#
230bb4d9 |
| 08-Jun-2009 |
Jung-uk Kim <jkim@FreeBSD.org> |
Rewrite OsdSynch.c to reflect the latest ACPICA more closely:
- Implement ACPI semaphore (ACPI_SEMAPHORE) with condvar(9) and mutex(9). - Implement ACPI mutex (ACPI_MUTEX) with mutex(9). - Implement
Rewrite OsdSynch.c to reflect the latest ACPICA more closely:
- Implement ACPI semaphore (ACPI_SEMAPHORE) with condvar(9) and mutex(9). - Implement ACPI mutex (ACPI_MUTEX) with mutex(9). - Implement ACPI lock (ACPI_SPINLOCK) with spin mutex(9).
show more ...
|
#
129d3046 |
| 05-Jun-2009 |
Jung-uk Kim <jkim@FreeBSD.org> |
Import ACPICA 20090521.
|
#
aaac7452 |
| 03-Jun-2009 |
Jung-uk Kim <jkim@FreeBSD.org> |
Chase ACPICA API changes (for kernel and boot loader).
|
Revision tags: release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
#
9d4ae9aa |
| 05-Apr-2008 |
Takanori Watanabe <takawata@FreeBSD.org> |
GPE lock may recurse on resume path.
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
#
abedf9eb |
| 27-Mar-2007 |
Jung-uk Kim <jkim@FreeBSD.org> |
- Use '*h' instead of 'struct acpi_spinlock' for sizeof[1]. - Add a missing 'else' for 'if'[2].
Requested by: njl[1] Submitted by: njl[2]
|
#
5acbef6a |
| 26-Mar-2007 |
Jung-uk Kim <jkim@FreeBSD.org> |
Correct ACPI semaphore function parameters.
|
#
97c99681 |
| 26-Mar-2007 |
Jung-uk Kim <jkim@FreeBSD.org> |
Free the handle, not the lock. Pointy hat to me.
|
#
98defcd3 |
| 26-Mar-2007 |
Jung-uk Kim <jkim@FreeBSD.org> |
Correct ACPI spinlock function parameters and use known ACPI spinlock names.
|
#
e49e68cc |
| 26-Mar-2007 |
Nate Lawson <njl@FreeBSD.org> |
Use a unique name for each mutex now that acpi-ca is creating more than one (hardware & global lock). This should address witness complaints that a duplicate mutex is being acquired. Be sure to fre
Use a unique name for each mutex now that acpi-ca is creating more than one (hardware & global lock). This should address witness complaints that a duplicate mutex is being acquired. Be sure to free the mutex to fix a potential memory leak.
MFC after: 3 days
show more ...
|
#
2be4e471 |
| 22-Mar-2007 |
Jung-uk Kim <jkim@FreeBSD.org> |
Catch up with ACPI-CA 20070320 import.
|
Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
09c00166 |
| 24-Dec-2005 |
Tom Rhodes <trhodes@FreeBSD.org> |
Make tv_sec a time_t on all platforms but alpha. Brings us more in line with POSIX. This also makes the struct correct we ever implement an i386-time64 architecture. Not that we need too.
Reviewe
Make tv_sec a time_t on all platforms but alpha. Brings us more in line with POSIX. This also makes the struct correct we ever implement an i386-time64 architecture. Not that we need too.
Reviewed by: imp, brooks Approved by: njl (acpica), des (no objects, touches procfs) Tested with: make universe
show more ...
|