OMAP1 clock: fix for "BUG: spinlock lockup on CPU#0"
authorPaul Walmsley <paul@pwsan.com>
Wed, 20 Jan 2010 00:30:55 +0000 (17:30 -0700)
committerPaul Walmsley <paul@pwsan.com>
Wed, 20 Jan 2010 20:35:28 +0000 (13:35 -0700)
commitaf022fafa89cca5731da3e3325dc027ed8d57bcd
treeb902855a35129aa2731d7233d50838e207b111e8
parentecbb06594744b72c362cb2252cb5f6de7cf1b394
OMAP1 clock: fix for "BUG: spinlock lockup on CPU#0"

Commit 52650505fbf3a6ab851c801f54e73e76c55ab8da caused clock initialization
to fail on OMAP1 with "BUG: spinlock lockup on CPU#0" -- this is because
omap1_select_table_rate() and omap1_round_to_table_rate() call clk_get_rate()
with the clockfw spinlock held.  Fix by accessing the rate directly from
the internal clock framework functions.

Thanks to Tony Lindgren <tony@atomide.com> for reporting and testing the fix.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/clock.c