Hi, I'm currently working with a custom scheduler in linux kernel 188.8.131.52. Or actually I'm porting a scheduler I all ready made in Solaris, anyway in sched.c in the schedule() function, I need to determine if a task is a real-time task or not, what is the best way to do this? Do real-time tasks got any flag set that I can check?
Also a question about jiffies, how many ns is a jiffy?
This macro, in sched.c says:
But where is HZ set? What is the default value?
#define NS_TO_JIFFIES(TIME) ((TIME) / (1000000000 / HZ))