Thread (15 messages) 15 messages, 3 authors, 2012-10-17

[PATCHv6 01/11] ARM: OMAP: clockdomain: Fix locking on _clkdm_clk_hwmod_enable / disable

From: tony@atomide.com (Tony Lindgren)
Date: 2012-10-17 02:41:10
Also in: linux-omap

* Paul Walmsley [off-list ref] [121016 19:26]:
On Tue, 25 Sep 2012, Tero Kristo wrote:
quoted
Previously the code only acquired spinlock after increasing / decreasing
the usecount value, which is wrong. This leaves a small window where
a task switch may occur between the check of the usecount and the actual
wakeup / sleep of the domain. Fixed by moving the spinlock locking before
the usecount access. Left the usecount as atomic_t if someone wants an
easy access to the parameter through atomic_read.

Signed-off-by: Tero Kristo <redacted>
Acked-by: Paul Walmsley <paul@pwsan.com>
OK I'll apply this into omap-for-v3.7-rc1/fixes-take4.

Regards,

Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help