]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPICA: haiku: Fix invalid value used for semaphores
authorAdrien Destugues <adrien.destugues@opensource.viveris.fr>
Tue, 12 Dec 2023 11:28:17 +0000 (12:28 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 29 Aug 2024 15:26:51 +0000 (17:26 +0200)
commit7afea7bc49c5482ac11fc4488230827edc51e28a
tree15757bfacc693778dc86bcf26f84470fb75febda
parent36b5c1dc4b22913f9813a94350e24f6744db38a8
ACPICA: haiku: Fix invalid value used for semaphores

ACPICA commit 49fe4f25483feec2f685b204ef19e28d92979e95

In Haiku, semaphores are represented by integers, not pointers.
So, we can't use NULL as the invalid/destroyed value, the correct value
is -1. Introduce a platform overridable define to allow this.

Fixes #162 (which was closed after coming to the conclusion that this
should be done, but the change was never done).

Link: https://github.com/acpica/acpica/commit/49fe4f25
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/utdelete.c
drivers/acpi/acpica/utinit.c
include/acpi/platform/acenv.h