Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1199217pxu; Fri, 27 Nov 2020 02:01:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxymR3qzp0zfWjFyopBfnNSTkDm8szWGOSzlXDolW5BrYN5H1PeF9nncFWX5BmG28Y5BLAh X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr6669114eje.6.1606471276620; Fri, 27 Nov 2020 02:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606471276; cv=none; d=google.com; s=arc-20160816; b=tcRvD0T3lIBLTB/WLw6v3I2P9qYnSWOR8WTLAYDIS9ri5cKT2aCVThCswsU+rkl3FJ OGMBRbda9Szm269phCU+RBU27Ib5TDx9BInxmvz8Vn7onbYTyCJ/6wSb2ccWXsZd92p1 jywpgAy5K8SKtFgbtzeHCO1LdwutVNRK40tEg9oNw4Q7pQTxOpAKLXGUCEVu6rI1Qe5q EspzQc/wGKgQQfpvXbMN1I2pN5Mr1gnECvozPGuFFuh2XtL6lhfIROY0pKW2rrlRHpI7 FRqRAKpmkbM70RvcNn9DQCbYDZYCissEBWzZw9YXJS1WBuh3tK9Wq9+jswC+o92qDp9G qkPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=as5NGkR8LfmhSljp1tZdawleEeORX9lUtRE94LegQJ0=; b=gZy2e+H80ea9LNBpZPIZamfHFXw7bKN0jCuaYeq/jev7cGVP/zO4Ld00aErWwjkLE1 BPQ3EhU9cKpSJM6VLQtYFSbjWJUhb1FxEQePJMT9V864ND59D7HZVsGQNFs5lpjVZKKq aUCvMyLocsY/RSheZL6+PwCco71KrnB1X20PlVBzm15SgP2+i/rkDNQrZDDt1fn75dum WnK6i2SPYT0h/UIQ63DlhPtcQLDR9I2beKFaa0m6ThijDF46wuptUsskFf17VkGszC9H W26eHlKpHB0ZS6QeA23+xwGwW2XeeduPTFx+2Mi79lbQzgnOhK5NOJ+JUDY2IPlr7crK Revw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s29si4675178eds.473.2020.11.27.02.00.53; Fri, 27 Nov 2020 02:01:16 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728911AbgK0J5N (ORCPT + 99 others); Fri, 27 Nov 2020 04:57:13 -0500 Received: from elvis.franken.de ([193.175.24.41]:32819 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728177AbgK0J5M (ORCPT ); Fri, 27 Nov 2020 04:57:12 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kiaV3-000709-01; Fri, 27 Nov 2020 10:57:09 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 9CC34C02A6; Fri, 27 Nov 2020 10:32:45 +0100 (CET) Date: Fri, 27 Nov 2020 10:32:45 +0100 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Huacai Chen , Jiaxun Yang , Florian Fainelli , linux-mips@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH] MIPS: No need to check CPU 0 in {loongson3,bmips,octeon}_cpu_disable() Message-ID: <20201127093245.GB4859@alpha.franken.de> References: <1606299090-14013-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1606299090-14013-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2020 at 06:11:30PM +0800, Tiezhu Yang wrote: > After commit 9cce844abf07 ("MIPS: CPU#0 is not hotpluggable"), > c->hotpluggable is 0 for CPU 0 and it will not generate a control > file in sysfs for this CPU: > > [root@linux loongson]# cat /sys/devices/system/cpu/cpu0/online > cat: /sys/devices/system/cpu/cpu0/online: No such file or directory > [root@linux loongson]# echo 0 > /sys/devices/system/cpu/cpu0/online > bash: /sys/devices/system/cpu/cpu0/online: Permission denied > > So no need to check CPU 0 in {loongson3,bmips,octeon}_cpu_disable(), > just remove them. > > Signed-off-by: Tiezhu Yang > --- > arch/mips/cavium-octeon/smp.c | 3 --- > arch/mips/kernel/smp-bmips.c | 3 --- > arch/mips/loongson64/smp.c | 3 --- > 3 files changed, 9 deletions(-) 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 ]