Because it's redundant. It's *always* p == current (and the code
assumes this!), but I had to grep the callers to find out.
Moreover, the function doesn't make *sense* if p != current...
> > 3) lock_task_rq returns the rq, rather than assigning it, for clarity.
>
> i've made it an inline function instead of a macro.
I thought of that, but assumed you had a good reason for making it a
macro in the first place...
Thanks!
Rusty.
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/