Re: [Xen-devel] [PATCH v3 01/11] xen: sched: make implementing .alloc_pdata optional

2016-04-08 Thread Robert VanVossen
On 4/7/2016 9:23 PM, 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

[Xen-devel] [PATCH v3 01/11] xen: sched: make implementing .alloc_pdata optional

2016-04-07 Thread Dario Faggioli
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 varia