avr32: fix deadlock when reading clock list in debugfs
authorOle Henrik Jahren <olehenja@alumni.ntnu.no>
Sun, 6 Mar 2011 19:42:39 +0000 (20:42 +0100)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Wed, 13 Apr 2011 13:46:52 +0000 (15:46 +0200)
commit6e2ad51190cdb11b364377882134513f60dec6b9
treeea112778575ab257cb9d90638deec4bd676443a1
parent51ef85d8f9ae24475a0cb1bd772258eafec91c69
avr32: fix deadlock when reading clock list in debugfs

When writing out /sys/kernel/debug/at32ap_clk, clock list lock is being
held while clk_get() is called. clk_get() attempts to take the same
lock, which results in deadlock. Introduce and call lock free version,
__clk_get(), instead.

Signed-off-by: Ole Henrik Jahren <olehenja@alumni.ntnu.no>
Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
arch/avr32/mach-at32ap/clock.c