ARM: tegra: fix warning during LP0
authorDeepak Nibade <dnibade@nvidia.com>
Wed, 11 Sep 2013 09:38:17 +0000 (14:38 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 27 Sep 2013 02:45:38 +0000 (19:45 -0700)
commit07ef3ad4aa88886e98c9a931558ae96a4495ae81
tree8d02d5371b1433bd7867055a9609aaa0e8a7c094
parent1bd0c7fc716f9e5e91e484f1a1cc6facfdfe2076
ARM: tegra: fix warning during LP0

- with CONFIG_DEBUG_ATOMIC_SLEEP enabled, below warning was seen
BUG: sleeping function called from invalid context at
/kernel/kernel/mutex.c:85

- function 'tegra_get_clock_by_name()' was being called from
  atomic context in 'tegra_lp0_cpu_mode()'

- move function tegra_get_clock_by_name("cclk_lp")
  to separate init function and call it through subsys_initcall()
  to avoid this warning during LP0

Bug 1355279
Bug 1318641

Change-Id: I42df042051938d75366884946e7f660522f3c26c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/273034
(cherry picked from commit 9c126a72c41aa66fb9bf394426e331d379aa5c40)
Reviewed-on: http://git-master/r/275055
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
arch/arm/mach-tegra/pm-t3.c