The branch main has been updated by olce:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3b3911aaf834824f2de0db9fc7d0b9e2b3c089b4

commit 3b3911aaf834824f2de0db9fc7d0b9e2b3c089b4
Author:     Olivier Certner <[email protected]>
AuthorDate: 2026-06-04 07:10:29 +0000
Commit:     Olivier Certner <[email protected]>
CommitDate: 2026-06-22 21:40:12 +0000

    acpi: Suffix acpi_sleep_enable() with '_locked'
    
    For clarification.  This function assumes that the acpi mutex is held,
    contrary to acpi_sleep_disable().
    
    No functional change (intended).
    
    Reviewed by:    obiwac
    Event:          Halifax Hackathon 202606
    Sponsored by:   The FreeBSD Foundation
    Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
---
 sys/dev/acpica/acpi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 9a6dae2dfecf..d599094718f7 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -170,7 +170,7 @@ static void acpi_probe_children(device_t bus);
 static void    acpi_probe_order(ACPI_HANDLE handle, int *order);
 static ACPI_STATUS acpi_probe_child(ACPI_HANDLE handle, UINT32 level,
                    void *context, void **status);
-static void    acpi_sleep_enable(void *arg);
+static void    acpi_sleep_enable_locked(void *arg);
 static ACPI_STATUS acpi_sleep_disable(struct acpi_softc *sc);
 static ACPI_STATUS acpi_EnterSleepState(struct acpi_softc *sc,
                    enum power_stype stype);
@@ -801,7 +801,7 @@ acpi_attach(device_t dev)
     /* Allow sleep request after a while. */
     callout_init_mtx(&acpi_sleep_timer, &acpi_mutex, 0);
     callout_reset(&acpi_sleep_timer, hz * ACPI_MINIMUM_AWAKETIME,
-       acpi_sleep_enable, sc);
+       acpi_sleep_enable_locked, sc);
 
     error = 0;
 
@@ -3470,7 +3470,7 @@ acpi_AckSleepState(struct apm_clone_data *clone, int 
error)
 }
 
 static void
-acpi_sleep_enable(void *arg)
+acpi_sleep_enable_locked(void *arg)
 {
     struct acpi_softc  *sc = (struct acpi_softc *)arg;
 

Reply via email to