On Tue, 2019-09-24 at 13:41 +0200, Jürgen Groß wrote: > On 19.09.19 17:27, Jan Beulich wrote: > > On 14.09.2019 10:52, Juergen Gross wrote: > > > > > > -DECLARE_PER_CPU(struct schedule_data, schedule_data); > > > +#define curr_on_cpu(c) (get_sched_res(c)->curr) > > > > By moving this a few lines down if could become an inline function > > as it seems, if (see above) its use as an lvalue is not intended. > > I like that idea. Will change to inline function. > Yes, definitely better. With this (turning to inline func) done: Reviewed-by: Dario Faggioli Regards -- Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <> (Raistlin Majere)