summaryrefslogtreecommitdiff
path: root/kernel/power
diff options
context:
space:
mode:
authorSahara <keun-o.park@windriver.com>2013-06-21 11:12:28 +0900
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-06-24 13:09:03 +0200
commit247e9ee034b0448a585afa16e292cbb9dc0aef68 (patch)
treea6feaff9bd5bf5116e79432b96ae3cb6f0345381 /kernel/power
parentd30b82a46942cda5c0af3744142a650db0732a7c (diff)
PM / QoS: Add pm_qos_update_target/flags tracepoints
This patch adds tracepoints to pm_qos_update_target and pm_qos_update_flags. It's useful for checking pm qos action, previous value and current value. Signed-off-by: Sahara <keun-o.park@windriver.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/qos.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c
index f2f5f6e22a3..4fb8d142793 100644
--- a/kernel/power/qos.c
+++ b/kernel/power/qos.c
@@ -44,6 +44,7 @@
#include <linux/uaccess.h>
#include <linux/export.h>
+#include <trace/events/power.h>
/*
* locking rule: all changes to constraints or notifiers lists
@@ -202,6 +203,7 @@ int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node,
spin_unlock_irqrestore(&pm_qos_lock, flags);
+ trace_pm_qos_update_target(action, prev_value, curr_value);
if (prev_value != curr_value) {
blocking_notifier_call_chain(c->notifiers,
(unsigned long)curr_value,
@@ -272,6 +274,7 @@ bool pm_qos_update_flags(struct pm_qos_flags *pqf,
spin_unlock_irqrestore(&pm_qos_lock, irqflags);
+ trace_pm_qos_update_flags(action, prev_value, curr_value);
return prev_value != curr_value;
}