aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2011-04-26 11:33:18 +0200
committerRafael J. Wysocki <[email protected]>2011-04-26 11:33:18 +0200
commit7bed50c5edf5cba8dd515a31191cbfb6065ddc85 (patch)
tree4b945c6f83803a7ab7aa63467466b9a60a99d824 /lib/cpu-notifier-error-inject.c
parent22110faf8c8e980013790e6a5214de32b3303730 (diff)
ACPI / PM: Avoid infinite recurrence while registering power resources
There is at least one BIOS with a DSDT containing a power resource object with a _PR0 entry pointing back to that power resource. In consequence, while registering that power resource acpi_bus_get_power_flags() sees that it depends on itself and tries to register it again, which leads to an infinitely deep recurrence. This problem was introduced by commit bf325f9538d8c89312be305b9779e (ACPI / PM: Register power resource devices as soon as they are needed). To fix this problem use the observation that power resources cannot be power manageable and prevent acpi_bus_get_power_flags() from being called for power resource objects. References: https://bugzilla.kernel.org/show_bug.cgi?id=31872 Reported-and-tested-by: Pascal Dormeau <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Len Brown <[email protected]> Cc: [email protected]
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions