[PATCH] Fix isocpus's param handling when CPUMASK_OFFSTACK=n.

2017-10-23 Thread Rakib Mullick
> On Mon, Oct 23, 2017 at 5:50 PM, Ingo Molnar wrote: > >> * Rakib Mullick wrote: >> +/** >> + * cpumask_last - get the last cpu in a cpumask > > Please capitalize 'CPU' properly in documentation. > OK. >> + int ret, lastcpu; >> >> alloc_bootmem_cpumask_var(&cpu_isolated_map); >>

Re: [PATCH] Fix isocpus's param handling when CPUMASK_OFFSTACK=n.

2017-10-23 Thread Ingo Molnar
* Rakib Mullick wrote: > > *On Fri, Oct 20, 2017 at 2:49 PM, Ingo Molnar wrote: > > > >> Rakib Mullick wrote: > >> include/linux/cpumask.h | 16 > >> kernel/sched/topology.c | 8 +--- > >> 2 files changed, 21 insertions(+), 3 deletions(-) > > > > What kernel is this aga

[PATCH] Fix isocpus's param handling when CPUMASK_OFFSTACK=n.

2017-10-21 Thread Rakib Mullick
> *On Fri, Oct 20, 2017 at 2:49 PM, Ingo Molnar wrote: > >> Rakib Mullick wrote: >> include/linux/cpumask.h | 16 >> kernel/sched/topology.c | 8 +--- >> 2 files changed, 21 insertions(+), 3 deletions(-) > > What kernel is this against? It does not apply to the latest kern

Re: [PATCH] Fix isocpus's param handling when CPUMASK_OFFSTACK=n.

2017-10-20 Thread Ingo Molnar
* Rakib Mullick wrote: > cpulist_parse() uses nr_cpumask_bits as limit to parse the > passed buffer from kernel commandline. What nr_cpumask_bits > represents varies depends upon CONFIG_CPUMASK_OFFSTACK option. > If CONFIG_CPUMASK_OFFSTACK=n, then nr_cpumask_bits is same as > NR_CPUS, which mig

[PATCH] Fix isocpus's param handling when CPUMASK_OFFSTACK=n.

2017-10-15 Thread Rakib Mullick
cpulist_parse() uses nr_cpumask_bits as limit to parse the passed buffer from kernel commandline. What nr_cpumask_bits represents varies depends upon CONFIG_CPUMASK_OFFSTACK option. If CONFIG_CPUMASK_OFFSTACK=n, then nr_cpumask_bits is same as NR_CPUS, which might not represent the # of cpus reall