[Linux-ia64] Re: O(1) scheduler "complex" macros

From: Ingo Molnar <mingo_at_elte.hu>
Date: 2002-07-11 19:52:38
the correct macro is:

  #define task_running(rq, p) \
 	(((rq)->curr == (p)) || spin_is_locked(&(p)->switch_lock))

	Ingo
Received on Wed Jul 10 02:54:00 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:09 EST