13 void quit(const char *text)
18 char *sched_text(int scheduler)
32 return "Illegal scheduler value";
36 int sched_is(int line, struct sched_param *p, int shouldbe)
39 struct sched_param param;
41 /* What scheduler are we running now?
44 scheduler = sched_getscheduler(0);
45 if (sched_getparam(0, ¶m))
46 quit("sched_getparam");
51 if (shouldbe != -1 && scheduler != shouldbe)
54 "At line %d the scheduler should be %s yet it is %s.\n",
55 line, sched_text(shouldbe), sched_text(scheduler));