[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180320123918.GS4043@hirez.programming.kicks-ass.net>
Date: Tue, 20 Mar 2018 13:39:18 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Dou Liyang <douly.fnst@...fujitsu.com>
Cc: linux-kernel@...r.kernel.org, x86@...nel.org,
linux-acpi@...r.kernel.org, linux-doc@...r.kernel.org,
tglx@...utronix.de, mingo@...hat.com, corbet@....net,
rjw@...ysocki.net, lenb@...nel.org, hpa@...or.com
Subject: Re: [PATCH 3/5] x86/smpboot: Make the check code more clear in
prefill_possible_map()
On Tue, Mar 20, 2018 at 07:04:30PM +0800, Dou Liyang wrote:
> case 1: no | no | no | --> min (setup_possible_cpus, nr_cpu_ids, setup_max_cpus)
> case 2: no | no | yes| --> min (setup_possible_cpus, nr_cpu_ids)
> case 3: no | yes | no | --> 1
> case 4: no | yes | yes| --> 1
> case 5: yes | no | no | --> min (num_processors, nr_cpu_ids, setup_max_cpus)
> case 6: yes | no | yes| --> min (num_processors + disabled_cpus, nr_cpu_ids)
> case 7: yes | yes | no | --> 1
> case 8: yes | yes | yes| --> 1
The case number is off by one ;-)
Powered by blists - more mailing lists