ARM: tegra: fix warning during LP0
authorDeepak Nibade <dnibade@nvidia.com>
Wed, 11 Sep 2013 09:38:17 +0000 (14:38 +0530)
committerMrutyunjay Sawant <msawant@nvidia.com>
Mon, 16 Sep 2013 08:24:42 +0000 (01:24 -0700)
commit9c126a72c41aa66fb9bf394426e331d379aa5c40
treeb3b1ef8ccd5486e29c6e07dd797e5fea1196ca7e
parent196711f6383d9cbcd84d3bd01800543f5172ea59
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

Change-Id: I42df042051938d75366884946e7f660522f3c26c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/273034
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
arch/arm/mach-tegra/pm-t3.c