]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - lib/kernel_lock.c
OMAP: dmtimer: enable all timers to be wakeup events
[linux-2.6-omap-h63xx.git] / lib / kernel_lock.c
index 01a3c22c1b5a9c951dc33a0c37179306f36e18e4..39f1029e352586ca4640d3d0e6b1b4b28f120312 100644 (file)
@@ -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();
        }