···1327 return 0;1328}1329early_param("acpi_sci", setup_acpi_sci);1330+1331+int __acpi_acquire_global_lock(unsigned int *lock)1332+{1333+ unsigned int old, new, val;1334+ do {1335+ old = *lock;1336+ new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1));1337+ val = cmpxchg(lock, old, new);1338+ } while (unlikely (val != old));1339+ return (new < 3) ? -1 : 0;1340+}1341+1342+int __acpi_release_global_lock(unsigned int *lock)1343+{1344+ unsigned int old, new, val;1345+ do {1346+ old = *lock;1347+ new = old & ~0x3;1348+ val = cmpxchg(lock, old, new);1349+ } while (unlikely (val != old));1350+ return old & 0x1;1351+}
···189 bus = tmp;190191 if (seg == find->seg && bus == find->bus)0192 find->handle = handle;193- status = AE_OK;000194 exit:195 kfree(buffer.pointer);196 return status;
···189 bus = tmp;190191 if (seg == find->seg && bus == find->bus)192+ {193 find->handle = handle;194+ status = AE_CTRL_TERMINATE;195+ }196+ else197+ status = AE_OK;198 exit:199 kfree(buffer.pointer);200 return status;
+3-3
drivers/acpi/sleep/wakeup.c
···183#endif184185/*186- * Disable all wakeup GPEs before power off.187- * 188 * Since acpi_enter_sleep_state() will disable all189 * RUNTIME GPEs, we simply mark all GPES that190- * are not enabled for wakeup from S5 as RUNTIME.191 */192void acpi_gpe_sleep_prepare(u32 sleep_state)193{
···183#endif184185/*186+ * Disable all wakeup GPEs before entering requested sleep state.187+ * @sleep_state: ACPI state188 * Since acpi_enter_sleep_state() will disable all189 * RUNTIME GPEs, we simply mark all GPES that190+ * are not enabled for wakeup from requested state as RUNTIME.191 */192void acpi_gpe_sleep_prepare(u32 sleep_state)193{
+3-2
drivers/acpi/utilities/utdebug.c
···180 if (thread_id != acpi_gbl_prev_thread_id) {181 if (ACPI_LV_THREADS & acpi_dbg_level) {182 acpi_os_printf183- ("\n**** Context Switch from TID %X to TID %X ****\n\n",184- (u32) acpi_gbl_prev_thread_id, (u32) thread_id);0185 }186187 acpi_gbl_prev_thread_id = thread_id;
···180 if (thread_id != acpi_gbl_prev_thread_id) {181 if (ACPI_LV_THREADS & acpi_dbg_level) {182 acpi_os_printf183+ ("\n**** Context Switch from TID %lX to TID %lX ****\n\n",184+ (unsigned long) acpi_gbl_prev_thread_id,185+ (unsigned long) thread_id);186 }187188 acpi_gbl_prev_thread_id = thread_id;