From patchwork Fri Sep 18 15:35:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 11785327 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5DE5A92C for ; Fri, 18 Sep 2020 15:40:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 27BF4208DB for ; Fri, 18 Sep 2020 15:40:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="I163coTV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rF1V+JFD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 27BF4208DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=IyWB4O30z7I+ehAIOtk+gE3KDDzwhxShBS/I0whEi1Y=; b=I163coTV5s3vke9sdsMR4kJz+z GuzePPA5y95eMfGL9eyzDdiNcacpZotl+653dheY7BDxP1Bo5ZGtctYT4OtJ49tsPgc6Kq8Q24YKc Dv9AqACLuvBPlB1QseCvqiBkH9OsFmUA42SgcH6gYVRO2J4fpVN7PVukNQJnOaQIR6zKf9gJTbUh6 PGJtZQh9L8kAXfGOnO0zIqap/+vy+175VWUHwwvsUGRDXn7NhvCYSzvkdQrYddqZUsMmH9X+axM4h 3vs3D/4v+MLUofs1EFJdLnOLxICITBS8iYVmBJqazs9JwKxNzU5V9eVOeV4HBYnG/WN3iMWpPb1SP hDuroG7Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJIU4-00071x-EJ; Fri, 18 Sep 2020 15:39:36 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJIQV-0005i9-Qi for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2020 15:35:58 +0000 Received: by mail-pl1-x644.google.com with SMTP id q12so3161879plr.12 for ; Fri, 18 Sep 2020 08:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QcopGDK9hSIqTxMAksLRcaCuxtkJfGidWzxvqmPC0LQ=; b=rF1V+JFDa5AQPi3fis7yf6icTw5fAdLTA7IvNSYm5Jg7mKZcqMwY6CpvJ08/7xYEiE 0gt5PxOVHldqv/dlf1h/yTTAC/VDW9gfnuSvGI6WwlOihhLsYyYjRuYo81xpg1WDxEz7 1fqiM15pGYTN3gyOVg40BpunAltKQd3snX0+BN3bSTiNTN2suNE89iHboOR32eysWA5Y 3k6SbPV5/HLvo2IgqZZWEBkDc80sNaVOcFeBQ/0CFTgzQsr2D4+DSA0CwA4LURjDAP1F Bz5ohMbUGOzvov/LH0Dg3tHEOl2qGF+hjC2IApFZGFyyg3rDhC+esG8jPClg20eNCI4a XQXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QcopGDK9hSIqTxMAksLRcaCuxtkJfGidWzxvqmPC0LQ=; b=tkDiRI+Jdr7wsgZuSVHg/Gpr4/ONuUxraIdDRQOzqBzZFgOFlTvcT57OqoupKAGG3h +D6au0U5yNKe2orOpsPRnb37cC/sW3KHgbJ56zX4NZ2TPWpfwJ20agE9WcDgZF+fvKoI E1P2C8dYvoZ3LCd7ezVL/wNpB3YZ+KKse9QLerIEGVHosk5HKY/8NFaEdiZRYjRttIEk pQl4fI1h88Mcr13Av8DA+vQtU3rTtbUG9j8BoIkzP5P9dM6DTYu5FEEcRxI+S/SPAYxI ySPN9kWSy/9fCvtyrafQk6uPn31LxdxMKmQMRrCUhyfH+O6Fryw4HF4o0MBYlaUvya82 i/LA== X-Gm-Message-State: AOAM530yeqq6cw4MSGvhSkLNORyHVaFr6fBQPc4ydXTqH7JfV6QU/Wg9 AOAibM/v32DJc5VyhYJxoM+juaPgtuo= X-Google-Smtp-Source: ABdhPJzf9qo2foejLIFjrh+UevPzj8GAcsp6eUOrgT9WNBxjFVSQufeSbDF2kyFeL6TpUXSVny/74Q== X-Received: by 2002:a17:902:8306:b029:d0:cbe1:e7aa with SMTP id bd6-20020a1709028306b02900d0cbe1e7aamr33728872plb.27.1600443353096; Fri, 18 Sep 2020 08:35:53 -0700 (PDT) Received: from localhost.localdomain ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id y29sm4047910pfq.207.2020.09.18.08.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 08:35:52 -0700 (PDT) From: Sergey Senozhatsky To: Catalin Marinas , Will Deacon Subject: [PATCH] arm64: ipi_teardown() should depend on HOTPLUG_CPU Date: Sat, 19 Sep 2020 00:35:48 +0900 Message-Id: <20200918153548.836986-1-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_113555_959347_E43F3AE6 X-CRM114-Status: GOOD ( 14.58 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:644 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [sergey.senozhatsky[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sergey Senozhatsky Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org ipi_teardown() is used only when CONFIG_HOTPLUG_CPU is set. Signed-off-by: Sergey Senozhatsky --- arch/arm64/kernel/smp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index b6bde2675ccc..82e75fc2c903 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -82,9 +82,9 @@ static int nr_ipi __read_mostly = NR_IPI; static struct irq_desc *ipi_desc[NR_IPI] __read_mostly; static void ipi_setup(int cpu); -static void ipi_teardown(int cpu); #ifdef CONFIG_HOTPLUG_CPU +static void ipi_teardown(int cpu); static int op_cpu_kill(unsigned int cpu); #else static inline int op_cpu_kill(unsigned int cpu) @@ -964,6 +964,7 @@ static void ipi_setup(int cpu) enable_percpu_irq(ipi_irq_base + i, 0); } +#ifdef CONFIG_HOTPLUG_CPU static void ipi_teardown(int cpu) { int i; @@ -974,6 +975,7 @@ static void ipi_teardown(int cpu) for (i = 0; i < nr_ipi; i++) disable_percpu_irq(ipi_irq_base + i); } +#endif void __init set_smp_ipi_range(int ipi_base, int n) {