@@ -44,6 +44,8 @@
#include <acpi/acpi.h>
#include <linux/acpi.h>
+#include <linux/pm-trace.h>
+#include <linux/delay.h>
#include "accommon.h"
#define _COMPONENT ACPI_HARDWARE
@@ -275,6 +277,8 @@ static enum hrtimer_restart acpi_hw_legacy_tmr(struct hrtimer *tmr)
{
hrtimer_forward_now(tmr, time10ms);
+ TRACE_RESUME(0);
+
return HRTIMER_RESTART;
}
@@ -327,14 +331,17 @@ acpi_status acpi_hw_legacy_wake(u8 sleep_state)
timer.function = acpi_hw_legacy_tmr;
hrtimer_start(&timer, time10ms, HRTIMER_MODE_REL);
+ TRACE_RESUME(0);
/*
* Now we can execute _WAK, etc. Some machines require that the GPEs
* are enabled before the wake methods are executed.
*/
acpi_hw_execute_sleep_method(METHOD_PATHNAME__WAK, sleep_state);
+ TRACE_RESUME(0);
hrtimer_cancel(&timer);
+ TRACE_RESUME(0);
/*
* Some BIOS code assumes that WAK_STS will be cleared on resume
* and use it to determine whether the system is rebooting or