| | Subject | Re: [RFC][PATCH 02/22] sched: add extended scheduling interface | | From | Raistlin <> | | Date | Wed, 10 Nov 2010 23:05:53 +0100 |
| |
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@ekiga.net / dario.faggioli@jabber.org [unhandled content-type:application/pgp-signature] |