misc: tegra-profiler: fix sending frequencies
Igor Nabirushkin [Fri, 7 Aug 2015 09:39:40 +0000 (13:39 +0400)]
This fixes sending frequencies at the start of
profiling on some devices.

Bug 1673104

Change-Id: Ice0768f2e16994301be72d6df8af52c0dad8d0f6
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/780391
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dmitry Antipov <dantipov@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/misc/tegra-profiler/power_clk.c
drivers/misc/tegra-profiler/version.h

index cf72b46..94cc587 100644 (file)
@@ -440,14 +440,16 @@ static void
 read_all_sources_work_func(struct work_struct *work)
 {
        int cpu_id;
+       struct power_clk_source *s = &power_ctx.cpu;
 
        for_each_possible_cpu(cpu_id)
-               read_source(&power_ctx.cpu, cpu_id);
+               read_source(s, cpu_id);
 
        read_source(&power_ctx.gpu, -1);
        read_source(&power_ctx.emc, -1);
 
        check_clks();
+       check_source(s);
 }
 
 static DECLARE_WORK(read_all_sources_work, read_all_sources_work_func);
index 30da60f..5005121 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef __QUADD_VERSION_H
 #define __QUADD_VERSION_H
 
-#define QUADD_MODULE_VERSION           "1.103"
+#define QUADD_MODULE_VERSION           "1.104"
 #define QUADD_MODULE_BRANCH            "Dev"
 
 #endif /* __QUADD_VERSION_H */