Received: by 10.223.185.116 with SMTP id b49csp3483277wrg; Mon, 19 Feb 2018 00:20:26 -0800 (PST) X-Google-Smtp-Source: AH8x226ytJ68KdHVS3vkFtIdv/QK9mHMhvNid+B8Tlhi4upLla7/PgYQEucx12IcLmJ+9QwGodrq X-Received: by 2002:a17:902:fa2:: with SMTP id 31-v6mr13785480plz.346.1519028426016; Mon, 19 Feb 2018 00:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519028425; cv=none; d=google.com; s=arc-20160816; b=HSKJ8Ym/v8xS0n5aEFlpZIIJycS6E3+UfPsjk2QiHFzqgekzY1XLN+t/CqfPpLQgQ6 Y3HJdWkwsrqsGzJ0RoqqNT29S/hsbAu3J8v+ZnKKJa4R1OOKHpO069jPcauaP1qpNrxl uEyEI1YBvNez85Blpq7sISJTaNpdPQqMGEpolZwmyQgtMfKXPri96lWMplMZRmX+lUQX Sb6gx25FReOFRVUB3+U5/uUbdb5nspF/Cgp4kDGogeF/Qct0YCTCuDA682+d78iFeCnw 3xzvhvut844BV0Gzbr6Wz9Q1hOArc95yeP48mEAqN6loLw69E4X1ZRocdIL6DrPbBwUG NlzQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vDISN/Sp8KsvlLLPf0IwmFduyfPPQJXY5n66i5DxCCY=; b=dJTS5kmrtHQrPKzStNpXeUuMVpFErjfhVqJiUutykhGya9wPrrd8cWoTve0z/wmib/ WChpswxufP+8odzp4R/hWpfIZRvRBEV4soawqrTLIJYFbmIIxr2hOUdnbltdCNYg7PGU Ya7sYyrrdMb2pVwj1SvQPwcAuEDaGWxkMpHAgxcbRt+ghIhmsjV8rrIPurM6xBZtaOb2 qGuGjehFdN0MWjxHcTs3fuUY79MqN8DCuCK55jWv9YxaBWjKt+I4YTL10mDZnt1C9dVp d4AWZBPvadju2VtAUjtg66c+l+SGBt3cLyiJweNE3NHvWfIdU6vOY4k0MgRiOIKN7lvF NQUA== 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 t199si4919633pgb.105.2018.02.19.00.20.11; Mon, 19 Feb 2018 00:20:25 -0800 (PST) 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 S1752289AbeBSITZ (ORCPT + 99 others); Mon, 19 Feb 2018 03:19:25 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:54581 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbeBSITH (ORCPT ); Mon, 19 Feb 2018 03:19:07 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 334D7207B4; Mon, 19 Feb 2018 09:19:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.lan (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id BAF292046F; Mon, 19 Feb 2018 09:18:55 +0100 (CET) From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= To: maxime.ripard@bootlin.com, wens@csie.org, linux@armlinux.org.uk, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clabbe.montjoie@gmail.com, thomas.petazzoni@bootlin.com, mylene.josserand@bootlin.com, quentin.schulz@bootlin.com Subject: [PATCH v3 7/7] ARM: sun8i: smp: Remove the disabling of CPU0 Date: Mon, 19 Feb 2018 09:18:37 +0100 Message-Id: <20180219081837.15482-8-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180219081837.15482-1-mylene.josserand@bootlin.com> References: <20180219081837.15482-1-mylene.josserand@bootlin.com> 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 On sun8i-a63t, hotplug CPU for CPU0 is currently not working. Remove the possibility to disable CPU0 only for sun8i-a83t. Signed-off-by: Mylène Josserand --- arch/arm/mach-sunxi/mc_smp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/mc_smp.c b/arch/arm/mach-sunxi/mc_smp.c index fec592bf68b4..69d5ae5b3d72 100644 --- a/arch/arm/mach-sunxi/mc_smp.c +++ b/arch/arm/mach-sunxi/mc_smp.c @@ -661,8 +661,12 @@ static int sunxi_mc_smp_cpu_kill(unsigned int l_cpu) return !ret; } -static bool sunxi_mc_smp_cpu_can_disable(unsigned int __unused) +static bool sunxi_mc_smp_cpu_can_disable(unsigned int cpu) { + /* CPU0 hotplug handled only for sun9i */ + if (of_machine_is_compatible("allwinner,sun8i-a83t")) + if (cpu == 0) + return false; return true; } #endif -- 2.11.0