Re: [RFC][PATCH 02/22] sched: add extended scheduling interface

From: Raistlin
Date: Wed Nov 10 2010 - 18:06:15 EST


On Wed, 2010-11-10 at 19:50 +0100, Peter Zijlstra wrote:
> > +int sched_setscheduler_ex(struct task_struct *p, int policy,
> > + const struct sched_param *param,
> > + const struct sched_param_ex *param_ex)
> > +{
> > + return __sched_setscheduler(p, policy, param, param_ex, true);
> > +}
> > +EXPORT_SYMBOL_GPL(sched_setscheduler_ex);
>
> Do we really need to pass both params? Can't we simply create a struct
> sched_param_ex new_param = { .sched_priority = param->sched_priority };
> on stack and pass that?
>
We can. I'll do that way.

Thanks,
Dario

--
<<This happens because I choose it to happen!>> (Raistlin Majere)
----------------------------------------------------------------------
Dario Faggioli, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa (Italy)

http://blog.linux.it/raistlin / raistlin@xxxxxxxxx /
dario.faggioli@xxxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part