Commit 938cfed1 authored by Jean Pihet's avatar Jean Pihet Committed by Ingo Molnar
Browse files

perf: Add calls to suspend trace point

Uses the machine_suspend trace point, called from the
generic kernel suspend_devices_and_enter function.
Signed-off-by: default avatarJean Pihet <>
Acked-by: default avatarRafael J. Wysocki <>
Cc: Arjan van de Ven <>
CC: Thomas Renninger <>
Cc: Len Brown <>
Cc: Pavel Machek <>
Cc: Steven Rostedt <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Peter Zijlstra <>
LKML-Reference: <>
Signed-off-by: default avatarIngo Molnar <>
parent eccdfe2d
......@@ -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;
if (suspend_ops->begin) {
error = suspend_ops->begin(state);
if (error)
......@@ -229,6 +231,7 @@ int suspend_devices_and_enter(suspend_state_t state)
if (suspend_ops->end)
return error;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment