From patchwork Tue Aug 3 14:15:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 12416463 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6E30C4338F for ; Tue, 3 Aug 2021 14:19:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 7559A6054F for ; Tue, 3 Aug 2021 14:19:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7559A6054F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/cHxfJ37baUd/xRRX5jXUKKOL8PSfZ0RV8WhTLBf4BA=; b=V+6ZCCdczbwh7K k6+N5y+tnKKtq9XwclsSn7BSxk3BrYCjGKr7+HbI0Wz25SCDKEQ7RmwzkKWw5ItnY7FPa21MIVvZe Mgb/5E5PoNHvV5z3eInpPSYNW5MeGU2qkoRh+CqNKJQmaEi+R2h8F4LkVkCoBo9p5gP/VNaTbAD2n NUPG48Yp0dnsE+0Bkuq+G+Lmb6frFgQ0JegBkxIqYVfzcUdNjRFWYQ+vkndKpif0JjeRKwpUvc4k7 J3oKULvDa7Rz08aXzvC1FlYzZ/Hj6Jp9NO/7jlnkRtqnkxRZY9WS3ao5Z21GnA9XOLDcX9ziUmtbh LffZUzki69SkGTqgkflg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAvEK-003D0b-Un; Tue, 03 Aug 2021 14:17:17 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAvEE-003Cvn-Gz for linux-arm-kernel@lists.infradead.org; Tue, 03 Aug 2021 14:17:14 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210803_071710_838004_4E94E891 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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/hwtracing/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, const struct amba_id *id) drvdata->base = base; - get_online_cpus(); + cpus_read_lock(); per_cpu(debug_drvdata, drvdata->cpu) = drvdata; ret = smp_call_function_single(drvdata->cpu, debug_init_arch_data, drvdata, 1); - put_online_cpus(); + cpus_read_unlock(); if (ret) { dev_err(dev, "CPU%d debug arch init failed\n", drvdata->cpu);