X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fkernel_lock.c;h=39f1029e352586ca4640d3d0e6b1b4b28f120312;hb=a48f410a0a5a6c47cdfda35af49ea0e5aafb7745;hp=01a3c22c1b5a9c951dc33a0c37179306f36e18e4;hpb=8e3e076c5a78519a9f64cd384e8f18bc21882ce0;p=linux-2.6-omap-h63xx.git diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c index 01a3c22c1b5..39f1029e352 100644 --- a/lib/kernel_lock.c +++ b/lib/kernel_lock.c @@ -39,7 +39,7 @@ static __cacheline_aligned_in_smp DEFINE_SPINLOCK(kernel_flag); int __lockfunc __reacquire_kernel_lock(void) { while (!_raw_spin_trylock(&kernel_flag)) { - if (test_thread_flag(TIF_NEED_RESCHED)) + if (need_resched()) return -EAGAIN; cpu_relax(); }