[ACPI] merge 3549 4320 4485 4588 4980 5483 5651 acpica asus fops pnpacpi branches into release
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
@@ -838,7 +838,7 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
|
||||
static const int quantum_ms = 1000 / HZ;
|
||||
|
||||
ret = down_trylock(sem);
|
||||
for (i = timeout; (i > 0 && ret < 0); i -= quantum_ms) {
|
||||
for (i = timeout; (i > 0 && ret != 0); i -= quantum_ms) {
|
||||
schedule_timeout_interruptible(1);
|
||||
ret = down_trylock(sem);
|
||||
}
|
||||
@@ -1060,11 +1060,9 @@ EXPORT_SYMBOL(max_cstate);
|
||||
* Acquire a spinlock.
|
||||
*
|
||||
* handle is a pointer to the spinlock_t.
|
||||
* flags is *not* the result of save_flags - it is an ACPI-specific flag variable
|
||||
* that indicates whether we are at interrupt level.
|
||||
*/
|
||||
|
||||
unsigned long acpi_os_acquire_lock(acpi_handle handle)
|
||||
acpi_native_uint acpi_os_acquire_lock(acpi_handle handle)
|
||||
{
|
||||
unsigned long flags;
|
||||
spin_lock_irqsave((spinlock_t *) handle, flags);
|
||||
@@ -1075,9 +1073,9 @@ unsigned long acpi_os_acquire_lock(acpi_handle handle)
|
||||
* Release a spinlock. See above.
|
||||
*/
|
||||
|
||||
void acpi_os_release_lock(acpi_handle handle, unsigned long flags)
|
||||
void acpi_os_release_lock(acpi_handle handle, acpi_native_uint flags)
|
||||
{
|
||||
spin_unlock_irqrestore((spinlock_t *) handle, flags);
|
||||
spin_unlock_irqrestore((spinlock_t *) handle, (unsigned long) flags);
|
||||
}
|
||||
|
||||
#ifndef ACPI_USE_LOCAL_CACHE
|
||||
|
Reference in New Issue
Block a user