ACPI: Print message before calling _PTS

Make acpi_sleep_prepare() static and cause it to print a message
specifying the ACPI system sleep state to be entered (helpful for
debugging the suspend/hibernation code).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by Rafael J. Wysocki and committed by Len Brown c9b6c8f6 7258ec5d

+3 -3
+3 -1
drivers/acpi/sleep/main.c
··· 43 43 __setup("acpi_new_pts_ordering", acpi_new_pts_ordering); 44 44 #endif 45 45 46 - int acpi_sleep_prepare(u32 acpi_state) 46 + static int acpi_sleep_prepare(u32 acpi_state) 47 47 { 48 48 #ifdef CONFIG_ACPI_SLEEP 49 49 /* do we have a wakeup address for S2 and S3? */ ··· 59 59 ACPI_FLUSH_CPU_CACHE(); 60 60 acpi_enable_wakeup_device_prep(acpi_state); 61 61 #endif 62 + printk(KERN_INFO PREFIX "Preparing to enter system sleep state S%d\n", 63 + acpi_state); 62 64 acpi_enter_sleep_state_prep(acpi_state); 63 65 return 0; 64 66 }
-2
drivers/acpi/sleep/sleep.h
··· 5 5 extern void acpi_enable_wakeup_device_prep(u8 sleep_state); 6 6 extern void acpi_enable_wakeup_device(u8 sleep_state); 7 7 extern void acpi_disable_wakeup_device(u8 sleep_state); 8 - 9 - extern int acpi_sleep_prepare(u32 acpi_state);