diff options
author | Lukasz Luba <l.luba@partner.samsung.com> | 2019-02-18 13:21:09 -0500 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2019-04-15 20:29:18 -0400 |
commit | cf451adfa392bd9ba36f31659dbe6a5010b46ef9 (patch) | |
tree | 8b69be5eb3ee8aaaf9212ab565b2333f3ce6b261 /drivers/devfreq/devfreq.c | |
parent | 1be0730f1dcd2971db4d2fe5497a20f438b837a7 (diff) |
PM / devfreq: add tracing for scheduling work
This patch add basic tracing of the devfreq workqueue and delayed work.
It aims to capture changes of the polling intervals and device state.
Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r-- | drivers/devfreq/devfreq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 8928383a1fa1..6b6991f0e873 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c | |||
@@ -29,6 +29,9 @@ | |||
29 | #include <linux/of.h> | 29 | #include <linux/of.h> |
30 | #include "governor.h" | 30 | #include "governor.h" |
31 | 31 | ||
32 | #define CREATE_TRACE_POINTS | ||
33 | #include <trace/events/devfreq.h> | ||
34 | |||
32 | static struct class *devfreq_class; | 35 | static struct class *devfreq_class; |
33 | 36 | ||
34 | /* | 37 | /* |
@@ -394,6 +397,8 @@ static void devfreq_monitor(struct work_struct *work) | |||
394 | queue_delayed_work(devfreq_wq, &devfreq->work, | 397 | queue_delayed_work(devfreq_wq, &devfreq->work, |
395 | msecs_to_jiffies(devfreq->profile->polling_ms)); | 398 | msecs_to_jiffies(devfreq->profile->polling_ms)); |
396 | mutex_unlock(&devfreq->lock); | 399 | mutex_unlock(&devfreq->lock); |
400 | |||
401 | trace_devfreq_monitor(devfreq); | ||
397 | } | 402 | } |
398 | 403 | ||
399 | /** | 404 | /** |