Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1579670

Re: [PATCH] sched/isolcpus: Show isolated cpu map

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH] sched/isolcpus: Show isolated cpu map
Date 2017-02-13 13:10 +0100
Message-ID <tanC9-3wl-19@gated-at.bofh.it> (permalink)
References <talqF-1VB-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Feb 13, 2017 at 05:43:59PM +0800, Kefeng Wang wrote:
> The commit a6e4491c682a ("sched/isolcpus: Output warning when the
> 'isolcpus=' kernel parameter is invalid") adds an error message
> when specified cpu bigger than nr_cpu_ids, but nr_cpumask_bits in
> cpulist_parse() could be nr_cpu_ids or NR_CPUS.
> 
> eg, NR_CPUS=64, nr_cpu_ids=8 in ARM64, cpulist_parse() won't return
> -ERANGE if isolcpus=1-10;
> 

But why does cpulist_parse() use nr_cpumask_bits, that seems to be the
problem, so why not look there?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] sched/isolcpus: Show isolated cpu map Kefeng Wang <wangkefeng.wang@huawei.com> - 2017-02-13 10:50 +0100
  Re: [PATCH] sched/isolcpus: Show isolated cpu map Peter Zijlstra <peterz@infradead.org> - 2017-02-13 13:10 +0100
    Re: [PATCH] sched/isolcpus: Show isolated cpu map Kefeng Wang <wangkefeng.wang@huawei.com> - 2017-02-13 14:10 +0100
      Re: [PATCH] sched/isolcpus: Show isolated cpu map Peter Zijlstra <peterz@infradead.org> - 2017-02-13 14:40 +0100
        Re: [PATCH] sched/isolcpus: Show isolated cpu map Kefeng Wang <wangkefeng.wang@huawei.com> - 2017-02-14 03:00 +0100

csiph-web