linux_dsm_epyc7002/drivers/acpi
Rafael J. Wysocki 5d1e072b6b ACPI suspend: Fix CONFIG_ACPI_SLEEP dependence and some compilation warnings
Initially CONFIG_PM_SLEEP was defined as
CONFIG_SUSPEND || CONFIG_HIBERNATION and some ACPI code, most
importantly the code in drivers/acpi/main.c, was written with this
assumption.  Currently, however, CONFIG_PM_SLEEP is also set when
CONFIG_XEN_SAVE_RESTORE is set.

This causes some compilation warnings to appear in
drivers/acpi/main.c if both CONFIG_SUSPEND and CONFIG_HIBERNATION
are unset and CONFIG_PM_SLEEP is set (this was impossible before).
To fix this problem, redefine CONFIG_ACPI_SLEEP do depend directly
on CONFIG_SUSPEND || CONFIG_HIBERNATION, as originally intended, and
use it instead of CONFIG_PM_SLEEP in drivers/acpi/main.c, wherever
appropriate.

Additionally, move the acpi_target_sleep_state definition from under
the #ifdef to prevent compilation from failing in some cases.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-10-22 14:58:43 -04:00
..
dispatcher ACPI: Change package length error to warning 2008-08-18 04:14:59 +02:00
events ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
executer ACPICA: Fix possible memory leak in Unload() operator 2008-08-15 02:11:59 +02:00
hardware ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
namespace ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
parser ACPICA: Eliminate acpi_native_uint type v2 2008-07-16 23:27:03 +02:00
resources ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
sleep ACPI suspend: Fix CONFIG_ACPI_SLEEP dependence and some compilation warnings 2008-10-22 14:58:43 -04:00
tables Revert "Fix FADT parsing" 2008-07-18 01:42:20 +02:00
utilities ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
ac.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
acpi_memhotplug.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
asus_acpi.c don't load asus-acpi if model is not supported 2008-10-17 01:42:41 -04:00
battery.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
bay.c APCI: revert duplicated patch 2008-07-20 17:14:57 -07:00
blacklist.c ACPI: DMI: quirk for FSC ESPRIMO Mobile V5505 2008-02-14 02:43:39 -05:00
bus.c Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
button.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
cm_sbs.c ACPI: clean up ACPI_MODULE_NAME() use 2007-02-12 22:42:12 -05:00
container.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
debug.c ACPI: add control method tracing support 2007-11-19 12:25:46 -05:00
dock.c ACPI: Properly clear flags on false-positives and send uevent on sudden unplug 2008-08-15 03:02:42 +02:00
ec.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
event.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
fan.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
glue.c ACPI: Make /proc/acpi/wakeup interface handle PCI devices (again) 2008-10-03 18:22:19 -07:00
Kconfig ACPI suspend: Fix CONFIG_ACPI_SLEEP dependence and some compilation warnings 2008-10-22 14:58:43 -04:00
Makefile Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
numa.c ACPICA: Update DMAR and SRAT table definitions 2008-07-16 23:27:04 +02:00
osl.c flush kacpi_notify_wq before removing notify handler 2008-04-29 02:34:42 -04:00
pci_bind.c ACPI: misc cleanups 2008-02-07 03:33:23 -05:00
pci_irq.c ACPI: use dev_printk when possible 2008-07-16 23:27:07 +02:00
pci_link.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
pci_root.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
pci_slot.c PCI: fix bogus "'device' may be used uninitialized" warning in pci_slot 2008-07-28 15:06:00 -07:00
power.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
processor_core.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
processor_idle.c acpi: trivial cleanups 2008-08-15 02:29:06 +02:00
processor_perflib.c ACPI: Fix now signed module parameter. 2008-08-18 08:38:36 +02:00
processor_thermal.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
processor_throttling.c cpumask: change cpumask_of_cpu_ptr to use new cpumask_of_cpu 2008-07-26 16:40:33 +02:00
reboot.c Add the ability to reset the machine using the RESET_REG in ACPI's FADT table. 2008-07-16 23:27:08 +02:00
sbs.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
sbshc.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
sbshc.h ACPI: SBS: Ignore alarms coming from unknown devices 2007-12-14 15:14:06 -05:00
scan.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
system.c move memory_read_from_buffer() from fs.h to string.h 2008-07-24 10:47:13 -07:00
tables.c acpi: add checking for NULL early param 2008-08-21 08:45:39 +02:00
thermal.c ACPI: Allow overriding to higher critical trip point. 2008-10-17 02:42:03 -04:00
toshiba_acpi.c ACPI: toshiba_acpi.c fix sparse signedness mismatch warnings 2008-10-10 18:05:53 -04:00
utils.c ACPICA: Fixes for external Reference Objects 2008-04-22 19:08:51 -04:00
video.c ACPI: catch calls of acpi_driver_data on pointer of wrong type 2008-10-10 18:05:53 -04:00
wmi.c ACPI: WMI: Set instance for query block calls 2008-08-15 02:25:01 +02:00