summaryrefslogtreecommitdiff
path: root/include/asm-generic/ioctl.h
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2012-09-25 19:05:32 +0300
committerTony Lindgren <tony@atomide.com>2012-10-17 09:00:31 -0700
commit64e29fd5ed42f5d0ff5b0ea9395b3abd5d43f89b (patch)
tree2d1a162662e2279f03d17de9b2e33c5d6cb8ca54 /include/asm-generic/ioctl.h
parent49c58e82023649924b1b0f38d715d94093f4044b (diff)
ARM: OMAP: clockdomain: Fix locking on _clkdm_clk_hwmod_enable / disable
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 <t-kristo@ti.com> Acked-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/asm-generic/ioctl.h')
0 files changed, 0 insertions, 0 deletions