]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
misc: tegra-profiler: fix sending frequencies
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Fri, 7 Aug 2015 09:39:40 +0000 (13:39 +0400)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 24 Aug 2015 14:39:54 +0000 (07:39 -0700)
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
(cherry picked from commit fa729cf14afa1acd82494db7fa8813c2d4660eaf)
Reviewed-on: http://git-master/r/783514
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alexey Kravets <akravets@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/misc/tegra-profiler/power_clk.c
drivers/misc/tegra-profiler/version.h

index cf72b46126ba5e77b1b8848e19fbb7f61293a571..94cc587b15e187195442b2c18bd36acd873e7ab5 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 30da60f3f069a43f6964639fb2f4990d306de058..50051214ca4332462cdb83e4bd35ce4ea0f479f7 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 */