]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerdomain: convert pwrdm_mutex to rwsem
authorPaul Walmsley <paul@pwsan.com>
Fri, 9 May 2008 21:45:24 +0000 (14:45 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 9 May 2008 21:45:24 +0000 (14:45 -0700)
commit757f0b4ad6b0fd4377c2ee512fc595b5778aa3ac
tree209342834a49d5b056b650b4f964fd8d7ba9ec21
parentcdda2a9adbc5421f4857e0313afc6c189f422e25
powerdomain: convert pwrdm_mutex to rwsem

Convert pwrdm_mutex to pwrdm_rwsem to avoid trying to relock mutex in the
event that the pwrdm_for_each() callback function calls something that
triggers a pwrdm_lookup().  Problem found by Jouni Högander
<jouni.hogander@nokia.com>

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