On Thu, Jan 23, 2014 at 12:11:04PM -0500, Dongsheng Yang wrote:On 01/22/2014 11:00 PM, Steven Rostedt wrote:And the floodgates open.. _why_ would a module care about nice values?Bah, I just noticed that TASK_NICE is in kernel/sched/sched.h notAgree. These macros are useful to other modules out of kernel/sched.
Peter, is there a reason that task_nice() is not a static inline in
sched.h and have these macros there too? They only reference fields in
task_struct that are already defined there. I don't see why they need
to be private to kernel/sched.
But they are private to kernel/sched currently.
That's sounds just so full of wrong.