From: Kevin Hilman Date: Tue, 21 Sep 2010 16:34:09 +0000 (-0600) Subject: OMAP: hwmod: separate list locking and hwmod hardware locking X-Git-Tag: v2.6.37-rc1~121^2~56^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12b1fdb45c2594070bb36e39cd89a33547aad8fb;p=pandora-kernel.git OMAP: hwmod: separate list locking and hwmod hardware locking Currently omap_hwmod_mutex is being used to protect both the list access/modification and concurrent access to hwmod functions. This patch separates these two types of locking. First, omap_hwmod_mutex is used only to protect access and modification of omap_hwmod_list. Also cleaned up some comments referring to this mutex that are no longer needed. Then, for protecting concurrent access to hwmod functions, use a per-hwmod mutex. This protects concurrent access to a single hwmod, but would allow concurrent access to different hwmods. Signed-off-by: Kevin Hilman [paul@pwsan.com: added structure documentation; changed mutex variable name] Signed-off-by: Paul Walmsley --- Reading git-diff-tree failed