[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 43/47] xen/sched: support multiple cpus per scheduling resource
On 14.09.2019 10:52, Juergen Gross wrote: > --- a/xen/common/schedule.c > +++ b/xen/common/schedule.c > @@ -59,7 +59,7 @@ integer_param("sched_ratelimit_us", sched_ratelimit_us); > enum sched_gran __read_mostly opt_sched_granularity = SCHED_GRAN_cpu; > unsigned int __read_mostly sched_granularity = 1; > bool __read_mostly sched_disable_smt_switching; > -const cpumask_t *sched_res_mask = &cpumask_all; > +cpumask_var_t sched_res_mask; For a non-automatic variable it might be even easier to have it be cpumask_t? > @@ -2401,6 +2407,8 @@ static int cpu_schedule_up(unsigned int cpu) > /* We start with cpu granularity. */ > sd->granularity = 1; > > + cpumask_set_cpu(cpu, sched_res_mask); I'm missing the clearing counterpart. 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 |