Page MenuHomeFreeBSD

acpi_apm: Narrow scope of ACPI_LOCK
ClosedPublic

Authored by jhb on Mar 20 2026, 4:46 PM.
Tags
None
Referenced Files
F167954220: D55994.diff
Tue, Aug 25, 2:54 PM
F167862530: D55994.id174023.diff
Tue, Aug 25, 2:03 AM
F167850796: D55994.id174536.diff
Tue, Aug 25, 12:16 AM
F167834172: D55994.id.diff
Mon, Aug 24, 9:09 PM
Unknown Object (File)
Mon, Aug 24, 2:07 PM
Unknown Object (File)
Mon, Aug 24, 7:45 AM
Unknown Object (File)
Sat, Aug 22, 7:43 PM
Unknown Object (File)
Sat, Aug 22, 7:41 PM
Subscribers

Details

Summary

This lock doesn't need to be held across seldrain/knlist_destroy. It
is also redundant (and a bug) to hold it across knlist_add and
knlist_remove since it is the mutex for the knlist.

PR: 293901

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Mar 20 2026, 4:46 PM
markj added inline comments.
sys/x86/acpica/acpi_apm.c
413–414

I guess an alternate solution would be to make the last parameter 1 instead of 0? But I don't see much reason to acquire the lock here anyway.

This revision is now accepted and ready to land.Mar 21 2026, 2:25 AM
This revision was automatically updated to reflect the committed changes.