Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1270734pxa; Thu, 20 Aug 2020 07:12:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2eaZpwDkMfA3SDPN+DZbBULaBQqF/ob91PfNbmdpG6N8gKSlrZ7xFAnyy9YeRXv80R7kK X-Received: by 2002:a05:6402:3193:: with SMTP id di19mr3152832edb.224.1597932756254; Thu, 20 Aug 2020 07:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597932756; cv=none; d=google.com; s=arc-20160816; b=fjoB7e+/iyWgwTB2og9/hO6CttN5+OZh+Jn+kuscD8wFyVsEeZ6QbBUDKt10iCkhLt apKFz7nre5t9tTJgGTjg7ixTBCk76TLhoIhqc28iEQIgOJ8MGegVgMSxzy9AvOPVVnug XO4U5LZxP0naxu9+mBK4gLh/AMWSTUbg/L678ex1POzzfsWa5QUsscXs55mdDAvNVK2k 1aZHxV/mMhuSyIHwcDR8ChflgGZkGXlCTQiys5sYRSGi3TCzkkKlyny8mRnKDd3Yvkj9 l0d+ULb9hRmuk8xV4TaXfIHLgSymIb/w1BXoS2ZKmkYCQ6KovKBU1V42sOQA1uBr+MT+ B/TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lBkq6kcOUhKFWf+ckLdIK2t3Hl30takCVPeZKatQVU0=; b=cLkt9HKVKiZxcHQCUKTpii1AesMiscqtxl3vGKff94B07FOUcQSCmdDJ4NeJTYWN0s 68RIEelC91QksN1hDTvVquojYaRSmcwPfluOjgvWPFFYdA5o4MuunChKtxmuSprz+ifX QKsnpxIvQHQDaXt2B3QMitILRpjufFoc7ND8UEwxF98ZLV1TiV5huiiADukSk595id77 ADTlvfSO3UvhPh0TGLXyoB3upbAtZiT8CvT1dh+OsLlZpZch09neIp7EjulY2iHjjF2T rRGuJYTtzMzDmRLB5ZNrTctB9NGbcy4is9J/A8OLpYPx5kRzYa7qxpgDEnoyGsN2W0qx 1GRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YAOlR8l2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fi14si1329078ejb.628.2020.08.20.07.12.11; Thu, 20 Aug 2020 07:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YAOlR8l2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730544AbgHTNx4 (ORCPT + 99 others); Thu, 20 Aug 2020 09:53:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:35958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727929AbgHTJ0r (ORCPT ); Thu, 20 Aug 2020 05:26:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8DD5822D04; Thu, 20 Aug 2020 09:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597915607; bh=6Ph9bjp28ZJvGhNXbLdFvK04Ec5xSbH1QX9g4Ch7iaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YAOlR8l2asklr49WHkOpiIiDsLgUtAtDIcKSW34tRdZnjPT0DuuAb8ZJdQzcqse3e KV1uK8ukdsVm6XoIBr+3J32ndHl/kNIX26ertlUpfVn/SgkVJZIbWamlH1lS1J7Qkt J9CNgS1Njl+0jmF+DSba/1t4Kj2mPGZnUTZY3Nd8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Huacai Chen , Thomas Bogendoerfer Subject: [PATCH 5.8 073/232] MIPS: CPU#0 is not hotpluggable Date: Thu, 20 Aug 2020 11:18:44 +0200 Message-Id: <20200820091616.342176412@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091612.692383444@linuxfoundation.org> References: <20200820091612.692383444@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huacai Chen commit 9cce844abf07b683cff5f0273977d5f8d0af94c7 upstream. Now CPU#0 is not hotpluggable on MIPS, so prevent to create /sys/devices /system/cpu/cpu0/online which confuses some user-space tools. Cc: stable@vger.kernel.org Signed-off-by: Huacai Chen Signed-off-by: Thomas Bogendoerfer Signed-off-by: Greg Kroah-Hartman --- arch/mips/kernel/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/mips/kernel/topology.c +++ b/arch/mips/kernel/topology.c @@ -20,7 +20,7 @@ static int __init topology_init(void) for_each_present_cpu(i) { struct cpu *c = &per_cpu(cpu_devices, i); - c->hotpluggable = 1; + c->hotpluggable = !!i; ret = register_cpu(c, i); if (ret) printk(KERN_WARNING "topology_init: register_cpu %d "