set_current_state() vs current->state

Frank Davis (fdavis112@juno.com)
Sun, 1 Oct 2000 03:04:31 -0400 (EDT)


Hello all,
I've been going through the drivers/block code (almost done) and noticed the use of, eg.:
set_current_state(TASK_RUNNING); and also
current->state = TASK_RUNNING;

Which one is most recent, and is there a suggestion on which one to use?

-Frank

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/