Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3204564ybb; Tue, 31 Mar 2020 00:00:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtup0nIYYmwdrzyAjhPffXff5UC46XbcLprJIsHhFfMJB/FybB8v/84JP3sjc6TlCt3lmxS X-Received: by 2002:aca:4843:: with SMTP id v64mr1109474oia.13.1585638045360; Tue, 31 Mar 2020 00:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585638045; cv=none; d=google.com; s=arc-20160816; b=XOMf+5WPTkDhafzuLPWYX/FNl9aqz1Rhe16vHN8ibXQCKKC0pVHwg4HRMLq2o704eq epdUWAg7Fk6FMQf/hKyBGxoLQaIAPOX3x/cX/1pnl3z36ZLWrug+kQvfWQxh/uF6N3yr ZdQRay2NWC5wOLq2cdPyx2EWIeIiuweAtY/c5qgY8fEhWHZLRaktCCIUSD5v+AOXMAeP KrBOaUH8z6c4XCPUqN4HStbSm9xPoL6x0H0aw2reMVitUGAOqUwNDOnG/rfGlK2eLEbn 1J08Am7GSBzfTqMXkpAQP7tIcTYQC1shTQdfRgj0OaVqzUz68axPqfJ4qqbAm1edV8fK Y9vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=pr1tNrhqeh8Lxg15u7RI44rFfgadJ68p0DGBZ4f/A+g=; b=F4SuTZLhEC5ZqN3mm8G31xD/0vAp2mBezVP1ROn/Gtk4PKJGz3oteemJ2F4QSxc+Z1 T7C0Ab+S7wvyCJf64dU1yrZtf74gG1PPaNJlCmFwSQrPRxpw9A6VHkuBFxVsIgfPw/DG MON8Z/g0OVXT/MJ9zXHglUsa0snK2Wm6kPVqslpMx4onAvh2ic/GQyCSByNjCfsMmiJC 7ucVpGZ8NEA6CTYM3eunEch6j6837DwfeYW7vTwWlyOgG9a8lBwQcuDN1fBNmBbs9N5R Xkr/JCYdWuSCCkb9+JytqcLVpVDB0Ba/LlPXzitnzIoz60Nf7IoZK3Fw3yjsGgfAtOzv Z3yA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si5248058otp.126.2020.03.31.00.00.31; Tue, 31 Mar 2020 00:00:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726526AbgCaHAQ (ORCPT + 99 others); Tue, 31 Mar 2020 03:00:16 -0400 Received: from mail.loongson.cn ([114.242.206.163]:56926 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726001AbgCaHAP (ORCPT ); Tue, 31 Mar 2020 03:00:15 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxb9p26oJeRf8hAA--.12S2; Tue, 31 Mar 2020 15:00:06 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH] MIPS: Loongson: Use CONFIG_NR_CPUS_DEFAULT_64 to support more CPUs Date: Tue, 31 Mar 2020 15:00:06 +0800 Message-Id: <1585638006-19439-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9Dxb9p26oJeRf8hAA--.12S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtrW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owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index a1f973c..a0b11f5 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -475,7 +475,7 @@ config MACH_LOONGSON64 select ISA select I8259 select IRQ_MIPS_CPU - select NR_CPUS_DEFAULT_4 + select NR_CPUS_DEFAULT_64 select USE_GENERIC_EARLY_PRINTK_8250 select SYS_HAS_CPU_LOONGSON64 select SYS_HAS_EARLY_PRINTK -- 2.1.0