Commit 677cc14d authored by David S. Miller's avatar David S. Miller

include/asm-sparc64/system.h: Define task_running.

parent a7046b3c
......@@ -138,7 +138,8 @@ do { spin_lock(&(next)->switch_lock); \
do { spin_unlock_irq(&(prev)->switch_lock); \
} while (0)
#define task_running(rq, p) \
((rq)->curr == (p) || spin_is_locked(&(p)->switch_lock))
#ifndef CONFIG_DEBUG_SPINLOCK
#define CHECK_LOCKS(PREV) do { } while(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment