>>> On 28.05.19 at 12:32, <jgr...@suse.com> wrote: > This prepares support of larger scheduling granularities, e.g. core > scheduling. > > While at it move sched_has_urgent_vcpu() from include/asm-x86/cpuidle.h > into schedule.c removing the need for including sched-if.h in > cpuidle.h and multiple other C sources. > > Signed-off-by: Juergen Gross <jgr...@suse.com>
(minor) x86 changes Acked-by: Jan Beulich <jbeul...@suse.com> > @@ -2074,6 +2072,16 @@ void wait(void) > schedule(); > } > > +/* > + * vcpu is urgent if vcpu is polling event channel > + * > + * if urgent vcpu exists, CPU should not enter deep C state > + */ > +int sched_has_urgent_vcpu(void) > +{ > + return atomic_read(&get_sched_res(smp_processor_id())->urgent_count); > +} Make this function's return type "bool" at the same time? Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel