summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJunjie Wu <junjiew@codeaurora.org>2015-07-14 16:35:45 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:04:34 -0700
commitaab1e601dee194e8be2dc07883f5a58694c2f8d2 (patch)
tree7e189f9332baf4407fed4452acbe4989ccaf5553 /drivers
parentee4630d01e16e645574d97777ca7fe6f6dc980ab (diff)
PM / devfreq: governor_cache_hwmon: Add mrps and freq vote traces
Replace measured mrps and frequency vote debug prints with trace events. Change-Id: I78370b068e3819a57635cbabaf5cdd053ebabce4 Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/devfreq/governor_cache_hwmon.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/devfreq/governor_cache_hwmon.c b/drivers/devfreq/governor_cache_hwmon.c
index 9973aeac4679..a2167e011a3d 100644
--- a/drivers/devfreq/governor_cache_hwmon.c
+++ b/drivers/devfreq/governor_cache_hwmon.c
@@ -28,6 +28,7 @@
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/devfreq.h>
+#include <trace/events/power.h>
#include "governor.h"
#include "governor_cache_hwmon.h"
@@ -134,12 +135,9 @@ static unsigned long measure_mrps_and_set_irq(struct cache_hwmon_node *node,
preempt_enable();
- dev_dbg(hw->df->dev.parent,
- "stat H=%3lu, M=%3lu, L=%3lu, T=%3lu, b=%3u, f=%4lu, us=%d\n",
- stat->mrps[HIGH], stat->mrps[MED], stat->mrps[LOW],
- stat->mrps[HIGH] + stat->mrps[MED] + stat->mrps[LOW],
- stat->busy_percent, hw->df->previous_freq / 1000, us);
-
+ trace_cache_hwmon_meas(dev_name(hw->df->dev.parent), stat->mrps[HIGH],
+ stat->mrps[MED], stat->mrps[LOW],
+ stat->busy_percent, us);
return 0;
}
@@ -168,6 +166,7 @@ static void compute_cache_freq(struct cache_hwmon_node *node,
new_mhz += node->guard_band_mhz;
*freq = new_mhz * 1000;
+ trace_cache_hwmon_update(dev_name(node->hw->df->dev.parent), *freq);
}
#define TOO_SOON_US (1 * USEC_PER_MSEC)