Skip to content

Commit 8e57de4

Browse files
committed
ACPI: OSL: Use spin locks without disabling interrupts
After commit 7a36b90 ("ACPI: OSL: Use a threaded interrupt handler for SCI") any ACPICA code never runs in a hardirq handler, so it need not dissable interrupts on the local CPU when acquiring a spin lock. Make it use spin locks without disabling interrupts. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent e2ffcda commit 8e57de4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/acpi/osl.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,20 +1515,18 @@ void acpi_os_delete_lock(acpi_spinlock handle)
15151515
acpi_cpu_flags acpi_os_acquire_lock(acpi_spinlock lockp)
15161516
__acquires(lockp)
15171517
{
1518-
acpi_cpu_flags flags;
1519-
1520-
spin_lock_irqsave(lockp, flags);
1521-
return flags;
1518+
spin_lock(lockp);
1519+
return 0;
15221520
}
15231521

15241522
/*
15251523
* Release a spinlock. See above.
15261524
*/
15271525

1528-
void acpi_os_release_lock(acpi_spinlock lockp, acpi_cpu_flags flags)
1526+
void acpi_os_release_lock(acpi_spinlock lockp, acpi_cpu_flags not_used)
15291527
__releases(lockp)
15301528
{
1531-
spin_unlock_irqrestore(lockp, flags);
1529+
spin_unlock(lockp);
15321530
}
15331531

15341532
#ifndef ACPI_USE_LOCAL_CACHE

0 commit comments

Comments
 (0)