|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 11/60] xen/sched: move per cpu scheduler private data into struct sched_resource
>>> On 28.05.19 at 12:32, <jgross@xxxxxxxx> 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 <jgross@xxxxxxxx>
(minor) x86 changes
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
> @@ -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@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |