* [PATCH 03/03] OMAP3 clock: Fix locking in notifier register
@ 2009-03-20 13:50 Nayak, Rajendra
0 siblings, 0 replies; only message in thread
From: Nayak, Rajendra @ 2009-03-20 13:50 UTC (permalink / raw)
To: linux-omap; +Cc: Nayak, Rajendra
From: Rajendra Nayak <rnayak@ti.com>
This patch avoids spinlocks being held when calling
blocking_notifier_chain_register().
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
---
arch/arm/plat-omap/clock.c | 4 ++++
1 files changed, 4 insertions(+)
Index: linux-omap-pm/arch/arm/plat-omap/clock.c
===================================================================
--- linux-omap-pm.orig/arch/arm/plat-omap/clock.c 2009-03-20 17:11:54.000000000 +0530
+++ linux-omap-pm/arch/arm/plat-omap/clock.c 2009-03-20 19:14:35.387298482 +0530
@@ -673,7 +673,11 @@ int clk_notifier_register(struct clk *cl
kfree(cn_new); /* didn't need it after all */
}
+ spin_unlock_irqrestore(&clockfw_lock, flags);
+
r = blocking_notifier_chain_register(&cn->notifier_head, nb);
+
+ spin_lock_irqsave(&clockfw_lock, flags);
if (!r) {
clkp = clk;
do {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-20 13:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-20 13:50 [PATCH 03/03] OMAP3 clock: Fix locking in notifier register Nayak, Rajendra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).