diff options
author | Sahara <keun-o.park@windriver.com> | 2013-06-21 11:12:28 +0900 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-24 13:09:03 +0200 |
commit | 247e9ee034b0448a585afa16e292cbb9dc0aef68 (patch) | |
tree | a6feaff9bd5bf5116e79432b96ae3cb6f0345381 /kernel/power/qos.c | |
parent | d30b82a46942cda5c0af3744142a650db0732a7c (diff) | |
download | kernel_goldelico_gta04-247e9ee034b0448a585afa16e292cbb9dc0aef68.zip kernel_goldelico_gta04-247e9ee034b0448a585afa16e292cbb9dc0aef68.tar.gz kernel_goldelico_gta04-247e9ee034b0448a585afa16e292cbb9dc0aef68.tar.bz2 |
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/qos.c')
-rw-r--r-- | kernel/power/qos.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c index f2f5f6e..4fb8d14 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; } |