[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1911192337430.6731@nanos.tec.linutronix.de>
Date: Tue, 19 Nov 2019 23:42:32 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: Qais Yousef <qais.yousef@....com>
cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Josh Poimboeuf <jpoimboe@...hat.com>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
Jiri Kosina <jkosina@...e.cz>,
Nicholas Piggin <npiggin@...il.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Ingo Molnar <mingo@...nel.org>,
Eiichi Tsukata <devel@...ukata.com>,
Zhenzhong Duan <zhenzhong.duan@...cle.com>,
Nadav Amit <namit@...are.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 11/12] smp: Create a new function to bringup nonboot cpus
online
On Wed, 30 Oct 2019, Qais Yousef wrote:
> +void smp_bringup_nonboot_cpus(unsigned int setup_max_cpus)
> +{
> + unsigned int cpu;
> +
> + /* FIXME: This should be done in userspace --RR */
This fixme is stale and should just go away.
> + for_each_present_cpu(cpu) {
> + if (num_online_cpus() >= setup_max_cpus)
> + break;
> + if (!cpu_online(cpu))
> + cpu_up(cpu);
> + }
> +}
Thanks,
tglx
Powered by blists - more mailing lists