From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C320C352BE for ; Thu, 16 Apr 2020 16:41:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 435F122244 for ; Thu, 16 Apr 2020 16:41:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388208AbgDPQlg (ORCPT ); Thu, 16 Apr 2020 12:41:36 -0400 Received: from elvis.franken.de ([193.175.24.41]:42211 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731023AbgDPQlf (ORCPT ); Thu, 16 Apr 2020 12:41:35 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jP7Zy-0001kl-05; Thu, 16 Apr 2020 18:41:30 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 4946EC0144; Thu, 16 Apr 2020 18:40:55 +0200 (CEST) Date: Thu, 16 Apr 2020 18:40:55 +0200 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Huacai Chen , Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH] MIPS: Loongson: Use CONFIG_NR_CPUS_DEFAULT_64 to support more CPUs Message-ID: <20200416164055.GF24743@alpha.franken.de> References: <1585638006-19439-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1585638006-19439-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On Tue, Mar 31, 2020 at 03:00:06PM +0800, Tiezhu Yang wrote: > When I update the mainline kernel on the Loongson 2-way platform which > has 8 CPUs, it only shows 4 CPUs due to NR_CPUS is 4, this is obviously > wrong. > > In order to support more CPUs on the Loongson platform, it is better > to use CONFIG_NR_CPUS_DEFAULT_64 instead of CONFIG_NR_CPUS_DEFAULT_4 > to specify the maximum number of CPUs which the kernel will support. > > Signed-off-by: Tiezhu Yang > --- > arch/mips/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]