]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00221975 Fix race condition in clock code.
authorRanjani Vaidyanathan <ra5478@freescale.com>
Wed, 29 Aug 2012 22:05:11 +0000 (17:05 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:20 +0000 (08:35 +0200)
commit478fd93e7ddf08d51fdb12cdf6df1265306d61fb
tree834c3b1267c595deeda8c2248e11fa4faf6b970a
parent015feb1974f7291664d3ff3e265e4878b715623b
ENGR00221975 Fix race condition in clock code.

Need to ensure that check for usecount in clk_set_parent
occurs within the protection of the clock mutex. Else
there is a chance that the usecount can be decremented
(and the clock disabled) after the check.
Also add back the code to maintain the correct usecount
for pll2_pfd_400.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
arch/arm/mach-mx6/clock.c
arch/arm/mach-mx6/clock_mx6sl.c
arch/arm/plat-mxc/clock.c