diff options
author | Len Brown <len.brown@intel.com> | 2006-12-16 06:45:07 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-16 06:45:07 +0100 |
commit | 463e7c7cf9aaf95dd05e97e1a47854fdf5454cdc (patch) | |
tree | 1b9171c109496b7f4991fcae0a2e08ed3bbea10d /include/asm-i386 | |
parent | ACPI: ibm_acpi: respond to workqueue update (diff) | |
parent | ACPI: ibm-acpi: new ibm-acpi maintainer (diff) | |
download | linux-463e7c7cf9aaf95dd05e97e1a47854fdf5454cdc.tar.xz linux-463e7c7cf9aaf95dd05e97e1a47854fdf5454cdc.zip |
Pull trivial into test branch
Conflicts:
drivers/acpi/ec.c
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/acpi.h | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/include/asm-i386/acpi.h b/include/asm-i386/acpi.h index c80b3a94511a..7cfad93edf10 100644 --- a/include/asm-i386/acpi.h +++ b/include/asm-i386/acpi.h @@ -56,30 +56,8 @@ #define ACPI_ENABLE_IRQS() local_irq_enable() #define ACPI_FLUSH_CPU_CACHE() wbinvd() - -static inline int -__acpi_acquire_global_lock (unsigned int *lock) -{ - unsigned int old, new, val; - do { - old = *lock; - new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1)); - val = cmpxchg(lock, old, new); - } while (unlikely (val != old)); - return (new < 3) ? -1 : 0; -} - -static inline int -__acpi_release_global_lock (unsigned int *lock) -{ - unsigned int old, new, val; - do { - old = *lock; - new = old & ~0x3; - val = cmpxchg(lock, old, new); - } while (unlikely (val != old)); - return old & 0x1; -} +int __acpi_acquire_global_lock(unsigned int *lock); +int __acpi_release_global_lock(unsigned int *lock); #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) \ ((Acq) = __acpi_acquire_global_lock((unsigned int *) GLptr)) |