X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fkernel_lock.c;h=e0fdfddb406ec3975673f150f46bd3302bc08599;hb=d73f30e1c9a9af14757fa5bf4014343926047156;hp=bd2bc5d887b815e261ff82c4167e410966b659d3;hpb=2a5a68b840cbab31baab2d9b2e1e6de3b289ae1e;p=powerpc.git diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c index bd2bc5d887..e0fdfddb40 100644 --- a/lib/kernel_lock.c +++ b/lib/kernel_lock.c @@ -14,7 +14,7 @@ * The 'big kernel semaphore' * * This mutex is taken and released recursively by lock_kernel() - * and unlock_kernel(). It is transparently dropped and reaquired + * and unlock_kernel(). It is transparently dropped and reacquired * over schedule(). It is used to protect legacy code that hasn't * been migrated to a proper locking design yet. * @@ -92,7 +92,7 @@ void __lockfunc unlock_kernel(void) * The 'big kernel lock' * * This spinlock is taken and released recursively by lock_kernel() - * and unlock_kernel(). It is transparently dropped and reaquired + * and unlock_kernel(). It is transparently dropped and reacquired * over schedule(). It is used to protect legacy code that hasn't * been migrated to a proper locking design yet. * @@ -177,6 +177,10 @@ static inline void __lock_kernel(void) static inline void __unlock_kernel(void) { + /* + * the BKL is not covered by lockdep, so we open-code the + * unlocking sequence (and thus avoid the dep-chain ops): + */ _raw_spin_unlock(&kernel_flag); preempt_enable(); }