Rusty Russell wrote:
What about?
int sched_setscheduler(struct task_struct *p, int policy,
struct sched_param *param)
{
return __sched_setscheduler(p, policy, param, true);
}
int sched_setscheduler_nocheck(struct task_struct *p, int policy,
struct sched_param *param)
{
return __sched_setscheduler(p, policy, param, false);
}
(With the appropriate transformation of sched_setscheduler -> __)
Better than scattering stray true/falses around the code.
J
--