From patchwork Wed Aug 18 19:40:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 12445209 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=-17.4 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,URIBL_BLOCKED, USER_AGENT_GIT 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 8423DC432BE for ; Wed, 18 Aug 2021 19:48:10 +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 540AA61103 for ; Wed, 18 Aug 2021 19:48:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 540AA61103 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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=DX/Cs6yj3Uu7I4bgFvGLxt691dzL6RBb4mcuoPUeRyk=; b=43zepAzrkZVeA/ 4Nen9dl+eytNc1qw1I2fJjGs4PdaX7+6U+DW8Fo4yjlU9PBmezb8jTjEJMlXZKNrcUyd5oFrLWhei zf99HuF7iLOylftIo+uXK8qfVJtXDW+K05PTz7FP6XRTjZT7ZkEfEh/gcKQnKeFKvuyKHOufH8Eqg QJN1RRXOyTbRJuBMISzBq4oIPpiahwnz3GbmiW8WESSieAp30NV8dYk1WVnFjlmKENPFbngsNYTtu 5ro7I5ToGRjn0ZqgmCaRTYfVvQj8vkFiWEeIuAh8PaYf4ld9tIf+3dA1ltPZVyH0aiqdgJ5Y8Eo1S veF1DrGyR5D6YKHMM7Hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGRVE-006XaP-KQ; Wed, 18 Aug 2021 19:45:34 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGRQZ-006VWo-Eq for linux-arm-kernel@lists.infradead.org; Wed, 18 Aug 2021 19:40:47 +0000 Received: by mail-pg1-x52f.google.com with SMTP id r2so3377635pgl.10 for ; Wed, 18 Aug 2021 12:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cmK65pjDZ5qVva3XgHDw9o42yw29z316T7tmW/1Nv3w=; b=CBQFS/CzM+VLJ7KH3den7IQN+mjUpqRxz1yp5Z0iSkaB7Z2oiisIToaj+Ceb88d0qD pJQvEHjY/laBj7w96Z9tKCmmPS+ymHrQQN+rLzZcqm9McHz4HLHFC8qOEkpr2ZKuRYF7 6fFe5kIMAG46U/prB5iMwp7JyRBOHlH63GmEUDS+jFQNNkQQ9/dfGbYf44RDfZUNVvPU aoBHzNo+KdxtrYgBdEeqG2sXp8R86zmH0MXA82oL9c4B6x7lSdL7s+nMtXR3yqtA5Lcz NsQpn7OeUruJa/qTk2LR0IPWcSJQSedGLvsRSG7R1Hwkoj3FV4ZIzPun+9pdvCK6AfKs tyGA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=cmK65pjDZ5qVva3XgHDw9o42yw29z316T7tmW/1Nv3w=; b=KBOKEYGkgURJYEEbPP2Jxmd6pIsb5ZlgSC5/c08kbKDVlWY3dWDKLnMO3OcWYqEQ7t /JlPV/oJ/i3z4z4xz6cbVjZDf0R5vyCv6IK+gJE5JIWsneB9S2yv+Yyk/ar6zDqmopub smSsjYnLUsR0JzPbMTXXbnLw7n5ZWglZVBmL51chiC01lbMRaTfl3/5BxZgfz+iOL2xM gr5Hm4p8tArbpM9JYAFQbpjmz1TdKbqh0Hiv2FcduMPY3UZBDhfnrrZCeDrPISM/9JyY qLzL6PMVDNKM0yeUmSIkuHP1+zGrNcZEVh/UqJaQ1F4k+w9B40AS0vFJ9yerLI7Ns1sc IuzA== X-Gm-Message-State: AOAM533UknvyBup4LIr42YQHRUJhnCBinjFlpyEp6NBsrmjwwe70TlWa S6IKMjE82KpMWz8GUtcSZQICOw== X-Google-Smtp-Source: ABdhPJyuphotIJTx3zPxZtcqORfr/6ytao/jspVrVoIuvWpMuoTn/WCdN7FYtCks3g2Bf1T0NqOnHQ== X-Received: by 2002:a65:641a:: with SMTP id a26mr10470079pgv.340.1629315642726; Wed, 18 Aug 2021 12:40:42 -0700 (PDT) Received: from p14s.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id k12sm2960137pjg.6.2021.08.18.12.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 12:40:42 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/11] coresight: Replace deprecated CPU-hotplug functions. Date: Wed, 18 Aug 2021 13:40:22 -0600 Message-Id: <20210818194022.379573-12-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210818194022.379573-1-mathieu.poirier@linaro.org> References: <20210818194022.379573-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210818_124043_551697_E35810FF X-CRM114-Status: GOOD ( 12.78 ) 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 From: Sebastian Andrzej Siewior 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 Link: https://lore.kernel.org/r/20210803141621.780504-15-bigeasy@linutronix.de Signed-off-by: Mathieu Poirier --- 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 9731d3a96073..00de46565bc4 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);