projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eccdfe2
)
perf: Add calls to suspend trace point
author
Jean Pihet
<
[email protected]
>
Wed, 5 Jan 2011 18:49:01 +0000
(19:49 +0100)
committer
Ingo Molnar
<
[email protected]
>
Wed, 5 Jan 2011 20:25:28 +0000
(21:25 +0100)
Uses the machine_suspend trace point, called from the
generic kernel suspend_devices_and_enter function.
Signed-off-by: Jean Pihet <
[email protected]
>
Acked-by: Rafael J. Wysocki <
[email protected]
>
Cc: Arjan van de Ven <
[email protected]
>
CC: Thomas Renninger <
[email protected]
>
Cc: Len Brown <
[email protected]
>
Cc: Pavel Machek <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc:
[email protected]
LKML-Reference: <
1294253342
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/power/suspend.c
patch
|
blob
|
history
diff --git
a/kernel/power/suspend.c
b/kernel/power/suspend.c
index ecf770509d0d1bb9dce2381716d6e7583ee6c492..031d5e3a61973464eec7e0e72791e423bfb3396f 100644
(file)
--- a/
kernel/power/suspend.c
+++ b/
kernel/power/suspend.c
@@
-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: