OMAP3: PM: SmartReflex: Fix scheduled while atomic problem
commitdd7434899b162fc22ca11758b285b3295c432d8a
authorEduardo Valentin <eduardo.valentin@nokia.com>
Tue, 13 Oct 2009 08:39:45 +0000 (13 11:39 +0300)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 23 Oct 2009 18:20:23 +0000 (23 11:20 -0700)
tree5b9a25dee2dc686ca042cb96578eafcda0d5ea68
parentf13b63e0dd8e16226a8ce2f3997dafc6a73ae183
OMAP3: PM: SmartReflex: Fix scheduled while atomic problem

This patch moves clock lookup from get_vdd[1,2]_opp to
initialization procedure. Also adds a field in omap_sr
structure to store these clocks for later usage.

Calling clk_get inside get_vdd[1,2]_opp would cause
a scheduled while atomic problem while entering in idle
state (interrupts disabled).

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
arch/arm/mach-omap2/smartreflex.c