summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-06-30 10:16:36 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-06-30 10:16:36 +0000
commit6866d6c85bdb5a3d7a90cf0310589347454aac92 (patch)
treeff036d10abcf3c19946d6cf468986cbb7fc338a7 /sys/dev/acpi/acpi.c
parente56bbc05ac903af673abb6cef983d8d3f1086442 (diff)
Add intr_enable() function, intended for MI use to amd64 and i386 and use
this in the acpi(4) suspend/resume code paths. ok deraadt@
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 8a4ee6657cb..9e42f1899e6 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.349 2018/06/29 17:39:18 kettenis Exp $ */
+/* $OpenBSD: acpi.c,v 1.350 2018/06/30 10:16:35 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -2360,7 +2360,7 @@ acpi_sleep_pm(struct acpi_softc *sc, int state)
uint16_t rega, regb, regra, regrb;
int retry = 0;
- disable_intr();
+ intr_disable();
/* Clear WAK_STS bit */
acpi_write_pmreg(sc, ACPIREG_PM1_STS, 0, ACPI_PM1_WAK_STS);
@@ -2562,7 +2562,7 @@ acpi_sleep_state(struct acpi_softc *sc, int sleepmode)
resettodr();
s = splhigh();
- disable_intr(); /* PSL_I for resume; PIC/APIC broken until repair */
+ intr_disable(); /* PSL_I for resume; PIC/APIC broken until repair */
cold = 2; /* Force other code to delay() instead of tsleep() */
if (config_suspend_all(DVACT_SUSPEND) != 0)
@@ -2610,7 +2610,7 @@ fail_pts:
fail_suspend:
cold = 0;
- enable_intr();
+ intr_enable();
splx(s);
acpibtn_disable_psw(); /* disable _LID for wakeup */
@@ -2681,7 +2681,7 @@ acpi_powerdown(void)
return;
s = splhigh();
- disable_intr();
+ intr_disable();
cold = 1;
/* 1st powerdown AML step: _PTS(tostate) */