New DEFINEs in include/linux/sched.h not found
I've been asked to build a new linux kernel that has fair group sharing (yes, it is
implemented in newer kernel versions already, but I'm going to be doing it using
the rt scheduler). This is for an Operating Systems class.
Now then, after I've built everything and recompiled the new kernel, it doesn't
seem to be able to figure out that I have a new scheduling policy. In particular,
even though I've placed...
...into the include/linux/sched.h header, it doesn't recognize that it's been added.
#DEFINE SCHED_FSG 6
(i.e. Trying to compile will give an "Undefined" error.)
The only way I can make it recognize the newly added policy (so that I can do
spiffy things like sched_setscheduler()) is to have the include from:
rather than the "proper" way of:
This makes me think that my headers aren't being used and <linux/sched.h> is
pointing some other version that my system knows of. If that's the case, then
this is really bad, because it's likely that all of my other modified kernel files
aren't being used either. Not really sure though.
Any thoughts on this?