ARM: tegra: dvfs: Get rid of dvfs_lock and move init later
authorColin Cross <ccross@android.com>
Tue, 2 Nov 2010 00:27:29 +0000 (17:27 -0700)
committerColin Cross <ccross@android.com>
Thu, 4 Nov 2010 00:55:53 +0000 (17:55 -0700)
commita1d72a522d5ecc98f6b57816f90141d1f0eecfeb
tree359602ade94080dd4181590068f5eca9b9b49cf8
parentc95714d0ba915e422ad676f68630fcd513f34295
ARM: tegra: dvfs: Get rid of dvfs_lock and move init later

Get rid of dvfs_lock, replacing it with the cansleep flag on clocks.
Clocks with the cansleep flag set will lock a mutex before calling
into dvfs.

Also does the regulator api calls during late init, after the
regulators have been probed.

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I5b8bd249bd4f3ae495f2076f1e6d2bfb38737f29
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/dvfs.c
arch/arm/mach-tegra/dvfs.h
arch/arm/mach-tegra/tegra2_dvfs.c