Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2471518pxy; Tue, 3 Aug 2021 07:19:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3jEkiT2HSzC/Wmek1RrZJOCgfl0A6q9F80FuwPBtT95jaByx1KxxeNfJ/Y/TQ5Gegkwud X-Received: by 2002:a92:b741:: with SMTP id c1mr712212ilm.220.1628000377205; Tue, 03 Aug 2021 07:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628000377; cv=none; d=google.com; s=arc-20160816; b=SmtGvURIZDPYpI5yPfk4U0pPgZswW+LXtkTK62lflIJnVZ6lx3RCHr6/VdZWZfzzDH 4DyrYvn773WJ+7yK4I+yzAt9zG8wWcUGmbnxBvJ1fe3HiudYHfKFdYhoWO8PUg3aecJ0 A9YrTyRsfBEo9eEA3d6IPOCa8SdISSbrPXsBw4RDAVxoOF2vP6R70aeX0vrgCR7thlvJ luxVywx4AQl0CLlgyjESx8EIlVTSmwV56xGuj4deQUPmrdtlmXsqHpmhj2Ey1f03lxQD 6KRjTpBzr8tJQ+FmNKNnhtRHrM1wc/NkrqMQWWCDZv1gorCjJK8blFVjyheX6sO5pUAg QxSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=ukfQ/itW8n54fN+jgxjD4o8zeGy/ZlKFFUejHTJbsn0=; b=U/oZwtdnBQvACtrkBC5BsVjCqb4o5iUD+PdmpUpiSwKC0GjlNDC/kb7WCXOT+BPamb FzBHTuT2Nbxi7WRBKBbJPXTqBieqH/AFqtJhAF4updh8fZbENxZ/zKugthFfBLmdpja+ NZLjf6IqNUH/V9nSVxCfoSRjDELhKz8axr1uweRf9oDQ4v0XgjL53ALQZjOKKV/+9hVG cbHc04A1GhFRrYPPekSOjANz+xtIQPsILidVuO0qpnpfA/AP8IbFdmJhYpOsCknk++OD DMDL1p9btagLJkje/PNJ/6I5iyZR6AoQlC3aEXJGEGSijscE7nt5Rz1I0xL5PVFrJc+n t3xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=mEthALok; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gwyhrxEu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e101si14992995jai.50.2021.08.03.07.19.22; Tue, 03 Aug 2021 07:19:37 -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=@linutronix.de header.s=2020 header.b=mEthALok; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gwyhrxEu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236808AbhHCORz (ORCPT + 99 others); Tue, 3 Aug 2021 10:17:55 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56902 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236488AbhHCORU (ORCPT ); Tue, 3 Aug 2021 10:17:20 -0400 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628000229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ukfQ/itW8n54fN+jgxjD4o8zeGy/ZlKFFUejHTJbsn0=; b=mEthALokmZMcCteDvF09DIiAu1JPAcuV5+J7tg9dttOtDh6jw77AtOaBnqImkqPMyMrmUs PeeaRKRb2NZRYn6TMcNApdfqF9RXxv/UxTy+zsdKu5RWbdlSJA3dYeeTF9W5kmaNe38dZy mD8Ttlb8RiDXHtQBDaR5uZdSY+w36KM6EeCjFqOClAhkneOjil1w6RJU5xH0QV3q2WKeLL EQC9PV887AcptAUgBl/HsfDghcTonF81ftEOXkwJRyUEVW1jk5HAhJuHEGdlG7SUlP34ut 7MWo/v6oP15qFMfHnQFoo7Vn1nxt91epL/88QsKgFYPwmniK/s1oiO2Mywz/1A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628000229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ukfQ/itW8n54fN+jgxjD4o8zeGy/ZlKFFUejHTJbsn0=; b=gwyhrxEueeU6LrsIcsijaBZI6vTZwfluKDVpE9Yej2ErvUyKKB73K9wtb5KO6+1icEms2K qrFUV+aWfsW6Q5Bg== To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, Peter Zijlstra , Sebastian Andrzej Siewior , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , Alexander Shishkin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 14/38] coresight: Replace deprecated CPU-hotplug functions. Date: Tue, 3 Aug 2021 16:15:57 +0200 Message-Id: <20210803141621.780504-15-bigeasy@linutronix.de> In-Reply-To: <20210803141621.780504-1-bigeasy@linutronix.de> References: <20210803141621.780504-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functions get_online_cpus() and put_online_cpus() have been deprecated during the CPU hotplug rework. They map directly to cpus_read_lock() and cpus_read_unlock(). Replace deprecated CPU-hotplug functions with the official version. The behavior remains unchanged. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Mike Leach Cc: Leo Yan Cc: Alexander Shishkin Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Sebastian Andrzej Siewior --- drivers/hwtracing/coresight/coresight-cpu-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-cpu-debug.c b/drivers/hw= tracing/coresight/coresight-cpu-debug.c index 9731d3a960735..00de46565bc40 100644 --- a/drivers/hwtracing/coresight/coresight-cpu-debug.c +++ b/drivers/hwtracing/coresight/coresight-cpu-debug.c @@ -588,11 +588,11 @@ static int debug_probe(struct amba_device *adev, cons= t struct amba_id *id) =20 drvdata->base =3D base; =20 - get_online_cpus(); + cpus_read_lock(); per_cpu(debug_drvdata, drvdata->cpu) =3D drvdata; ret =3D smp_call_function_single(drvdata->cpu, debug_init_arch_data, drvdata, 1); - put_online_cpus(); + cpus_read_unlock(); =20 if (ret) { dev_err(dev, "CPU%d debug arch init failed\n", drvdata->cpu); --=20 2.32.0