|
@@ -22,6 +22,7 @@
|
|
|
#include <linux/mm.h>
|
|
|
#include <linux/slab.h>
|
|
|
#include <linux/suspend.h>
|
|
|
+#include <trace/events/power.h>
|
|
|
|
|
|
#include "power.h"
|
|
|
|
|
@@ -201,6 +202,7 @@ int suspend_devices_and_enter(suspend_state_t state)
|
|
|
if (!suspend_ops)
|
|
|
return -ENOSYS;
|
|
|
|
|
|
+ trace_machine_suspend(state);
|
|
|
if (suspend_ops->begin) {
|
|
|
error = suspend_ops->begin(state);
|
|
|
if (error)
|
|
@@ -229,6 +231,7 @@ int suspend_devices_and_enter(suspend_state_t state)
|
|
|
Close:
|
|
|
if (suspend_ops->end)
|
|
|
suspend_ops->end();
|
|
|
+ trace_machine_suspend(PWR_EVENT_EXIT);
|
|
|
return error;
|
|
|
|
|
|
Recover_platform:
|