On 06/04/16 19:22, Dario Faggioli wrote: > The .alloc_pdata scheduler hook must, before this change, > be implemented by all schedulers --even those ones that > don't need to allocate anything. > > Make it possible to just use the SCHED_OP(), like for > the other hooks, by using ERR_PTR() and IS_ERR() for > error reporting. This: > - makes NULL a variant of success; > - allows for errors other than ENOMEM to be properly > communicated (if ever necessary). > > This, in turn, means that schedulers not needing to > allocate any per-pCPU data, can avoid implementing the > hook. In fact, the artificial implementation of > .alloc_pdata in the ARINC653 is removed (and, while there, > nuke .free_pdata too, as it is equally useless). > > Signed-off-by: Dario Faggioli <dario.faggi...@citrix.com> > Reviewed-by: Meng Xu <men...@cis.upenn.edu>
Reviewed-by: Juergen Gross <jgr...@suse.com> Juergen _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel