Wouldn't it be cleaner to define a macro in linux/sched.h
#define SET_TASK_STATE(s) do { current->state = (s); mb(); } while(0)
and replace all the explicit assignments with the macro?
J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/