50
50
int prev_policy = sched_getscheduler(0);
52
52
/* get maximum priority for the tested policy */
55
55
struct sched_param sparam;
57
57
/* try to change scheduling according the new params */
58
58
int ret = sched_setscheduler(curpid, policy, &sparam);