Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp729050pxb; Wed, 18 Aug 2021 12:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS1xrajiZDCIGvKks6fuaatUWAWKqkfHe56AhJ7o5fS/4eu2oIZ9TPI9W4uPLHQtpwPUtj X-Received: by 2002:a05:6e02:d06:: with SMTP id g6mr7321086ilj.153.1629315833637; Wed, 18 Aug 2021 12:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629315833; cv=none; d=google.com; s=arc-20160816; b=juiE8wFXKoA7KuE7hm9K3EJwUc/ygnl8412a7RRJkOgxaUkLQSkYudzw5Ba5Q+mojn k5IcT6zLIGxBjrwjBCC4bsLLOSzjPfKSriGC5hVr3n0F+vpBW2NRU0vJ4gvJx4MzSELM easGnWb+4YBoSX0a9OAE5bm+wS8XYhGWcnS4NAHkcTLwDWMljqGpGFS61zWAZwwissZu TVW5NtIiDs8qojn1a1mUPDSVy/MtUvS81THr+6xoluW8SjiJyrXsosJNyD/S1zidr4Nn a+VeqyVrLKQqD5TcmwK9waMS0AzSigWGgX8RsybQD6seoK0xYHVDXZBxNqEY8hXyHbE3 8mTw== 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:from :dkim-signature; bh=cmK65pjDZ5qVva3XgHDw9o42yw29z316T7tmW/1Nv3w=; b=Ot33K6df0/30SYQTZ6iJmuxHyomEzJqbgJ5USkuGP+4/wubz2l2zii6rebuCPB4yWx IyYbx41yeu3q1rHft3vG6o/nOYVXzf+6hP06Fa15jK7jlVsMqtJn2HjKUohUuxkGElFw GhEKfNhg4W1OurVABR0K2Khbibwb0tFHWSZmC4RTfLB4iftD6G03bb6cb/fFb9uzV0YA GFyKOaP69oeKWsZA1DV7b5+ZEWuwzUIOzW2XdZYI2+mKJLfDSIJZVyYwMEuyXdNnRP6B m7JzDHlR1MXljr1UjKv2zV9UkvAQ1mCALBDdXc/jqIAb7Hudrvw6Y7eaLBqMpV1VtLg6 HqAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CBQFS/Cz"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si674623ilf.130.2021.08.18.12.43.41; Wed, 18 Aug 2021 12:43:53 -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=@linaro.org header.s=google header.b="CBQFS/Cz"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233848AbhHRTmJ (ORCPT + 99 others); Wed, 18 Aug 2021 15:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232713AbhHRTlS (ORCPT ); Wed, 18 Aug 2021 15:41:18 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 222E7C061796 for ; Wed, 18 Aug 2021 12:40:43 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id 18so3237798pfh.9 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=fCxSOHTE9YPxakupVf1K/hWwiUFWXijzGezjqVSPGLcuH6BJSrWSgBkkPyL4IqpWjI Zd7pIBP60hKG2GyljT+cJOk6wQDiBAlYh+uFNmNOYaiz28nxApa9if4l1qvjvEmfJgbi 2lngeRtF/d0h1Ckm8OK9i4p1lHtcGrx/Rkd3aUTIIhthph6hP/M3TTVzjjoRIPYyqno2 XHKgVBbrrEEEpnN/d5YCHZ6Yr9Okip4TplR4HowT0wXZ7uvwh5EC6/zxkf+i1ep55+H+ R/LZwM3vkS0kkvqpd4Iph5+QyrUawzs9h/sLeFYW3+wqyfSH3sumt0nhsTN+DKgAfhiJ 47gw== X-Gm-Message-State: AOAM532mvdaNBrVzIqnGkfodoocBnBZlohmC8Cx38AoR34W8T3bYLiDs Wq3/gWTNjEtVt23TW/jNXCv9Bw== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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); -- 2.25.1