lkml.org 
[lkml]   [2010]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 02/22] sched: add extended scheduling interface
FromRaistlin <>
DateWed, 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]
\
 
 \ /
  Last update: 2010-11-11 00:09    [from the cache]
©2003-2010