]> err.no Git - linux-2.6/commitdiff
[POWERPC] iSeries: Fix unregistering HV event handlers
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Dec 2007 04:00:56 +0000 (15:00 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Dec 2007 05:11:46 +0000 (16:11 +1100)
Commit fbd568a3e61a7decb8a754ad952aaa5b5c82e9e5 ("Change
synchronize_kernel to _rcu and _sched") changed the deprecated
synchronize_kernel() in HvLpEvent_unregisterHandler() to
synchronize_rcu().  It turns out that it should have been
synchronize_sched().

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/lpevents.c

index 34bdbbe3ce590a73a70d04e5d91732189f1b43cb..02c142227b512bd2016e75b15ab6b740d541dec2 100644 (file)
@@ -226,7 +226,7 @@ int HvLpEvent_unregisterHandler(HvLpEvent_Type eventType)
                         * other CPUs, and that the deleted handler isn't
                         * still running on another CPU when we return.
                         */
-                       synchronize_rcu();
+                       synchronize_sched();
                        return 0;
                }
        }