···13271327 return 0;13281328}13291329early_param("acpi_sci", setup_acpi_sci);13301330+13311331+int __acpi_acquire_global_lock(unsigned int *lock)13321332+{13331333+ unsigned int old, new, val;13341334+ do {13351335+ old = *lock;13361336+ new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1));13371337+ val = cmpxchg(lock, old, new);13381338+ } while (unlikely (val != old));13391339+ return (new < 3) ? -1 : 0;13401340+}13411341+13421342+int __acpi_release_global_lock(unsigned int *lock)13431343+{13441344+ unsigned int old, new, val;13451345+ do {13461346+ old = *lock;13471347+ new = old & ~0x3;13481348+ val = cmpxchg(lock, old, new);13491349+ } while (unlikely (val != old));13501350+ return old & 0x1;13511351+}
···189189 bus = tmp;190190191191 if (seg == find->seg && bus == find->bus)192192+ {192193 find->handle = handle;193193- status = AE_OK;194194+ status = AE_CTRL_TERMINATE;195195+ }196196+ else197197+ status = AE_OK;194198 exit:195199 kfree(buffer.pointer);196200 return status;
+3-3
drivers/acpi/sleep/wakeup.c
···183183#endif184184185185/*186186- * Disable all wakeup GPEs before power off.187187- * 186186+ * Disable all wakeup GPEs before entering requested sleep state.187187+ * @sleep_state: ACPI state188188 * Since acpi_enter_sleep_state() will disable all189189 * RUNTIME GPEs, we simply mark all GPES that190190- * are not enabled for wakeup from S5 as RUNTIME.190190+ * are not enabled for wakeup from requested state as RUNTIME.191191 */192192void acpi_gpe_sleep_prepare(u32 sleep_state)193193{
+3-2
drivers/acpi/utilities/utdebug.c
···180180 if (thread_id != acpi_gbl_prev_thread_id) {181181 if (ACPI_LV_THREADS & acpi_dbg_level) {182182 acpi_os_printf183183- ("\n**** Context Switch from TID %X to TID %X ****\n\n",184184- (u32) acpi_gbl_prev_thread_id, (u32) thread_id);183183+ ("\n**** Context Switch from TID %lX to TID %lX ****\n\n",184184+ (unsigned long) acpi_gbl_prev_thread_id,185185+ (unsigned long) thread_id);185186 }186187187188 acpi_gbl_prev_thread_id = thread_id;