From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751292AbcISObS (ORCPT ); Mon, 19 Sep 2016 10:31:18 -0400 Received: from mail.southpole.se ([37.247.8.11]:36409 "EHLO mail.southpole.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbcISObR (ORCPT ); Mon, 19 Sep 2016 10:31:17 -0400 X-Greylist: delayed 363 seconds by postgrey-1.27 at vger.kernel.org; Mon, 19 Sep 2016 10:31:17 EDT Subject: Re: [PATCH 6/7] openrisc: add SMP and NR_CPUS Kconfig options To: Stafford Horne , Stefan Kristiansson , Andrew Morton References: <1474036985-20981-1-git-send-email-shorne@gmail.com> <1474036985-20981-7-git-send-email-shorne@gmail.com> Cc: linux-kernel@vger.kernel.org From: Jonas Bonn Message-ID: <57DFF6B2.4020605@southpole.se> Date: Mon, 19 Sep 2016 16:31:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1474036985-20981-7-git-send-email-shorne@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.5.1(16177) on assp.southpole.se X-Assp-ID: assp.southpole.se 95475-09691 X-Assp-Session: 7F0FD21A0A60 (mail 1) X-Assp-Client-SSL: yes X-Assp-Server-TLS: yes Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/16/2016 04:43 PM, Stafford Horne wrote: > From: Stefan Kristiansson OpenRISC was not an SMP architecture last I looked... did the relevant spec updates get made? If not, NAK. The issue is, the OpenRISC architecture shouldn't be a moving target defined by what the kernel supports... there's a spec that the kernel conforms to. This is important for the (few) real users of the architecture. /Jonas > Signed-off-by: Stefan Kristiansson > Signed-off-by: Stafford Horne > --- > arch/openrisc/Kconfig | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig > index 489e7f9..2bcf8c3 100644 > --- a/arch/openrisc/Kconfig > +++ b/arch/openrisc/Kconfig > @@ -98,6 +98,20 @@ config OPENRISC_HAVE_INST_DIV > Select this if your implementation has a hardware divide instruction > endmenu > > +config NR_CPUS > + int "Maximum number of CPUs (2-32)" > + range 2 32 > + depends on SMP > + default "2" > + > +config SMP > + bool "Symmetric Multi-Processing support" > + help > + This enables support for systems with more than one CPU. If you have > + a system with only one CPU, say N. If you have a system with more > + than one CPU, say Y. > + > + If you don't know what to do here, say N. > > source kernel/Kconfig.hz > source kernel/Kconfig.preempt