]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
misc: tegra-profiler: fix crash in power_clk stop
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Fri, 5 May 2017 11:56:59 +0000 (15:56 +0400)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 17 May 2017 19:59:58 +0000 (12:59 -0700)
commitf296fb48b0bd106e202f843aa79ca6cc229e4227
tree947e76393c8b026c8769398a98a2dcfa1a3f2579
parentd4a9aa91d6afd45ff9d5a2742d7d361505d43fa0
misc: tegra-profiler: fix crash in power_clk stop

Fix crash in profiler when using gpu and emc clocks: using
the freed clock source can cause the kernel panic.
Remove redundant clk_get_sys calls.

Bug 1918185

Change-Id: I421049c7a30fad6356f7300226e84794cecf0673
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/1476299
(cherry picked from commit 8b0d7e1748b31dd87ab2837a6b9f0a1d2e3d6ecc)
Reviewed-on: http://git-master/r/1482967
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
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