Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2545429pxy; Tue, 3 Aug 2021 08:54:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfcoJhRqL5HQ56rMX3ofMHH53sHUledUv46DZI9NqmLtd75XFt+M8ucNCaoUD1PplkLS1k X-Received: by 2002:aa7:dc18:: with SMTP id b24mr26690547edu.343.1628006045455; Tue, 03 Aug 2021 08:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628006045; cv=none; d=google.com; s=arc-20160816; b=r3eO8iuPQJHXfhTOqvXR8rNSNuFtzW1Tou9kb8XLcffXhfZ72X0Ax1i1if90Pcihs9 fRTXpMPiQY7s0UX8xMf1WIA8Xs+HjYelIRIxsr7gpvWA1T5oMhc1QI2T1KBTYMzIMm+q Kx0YYvD4tzF6zj6sU0VqAtgPBC3JMszEcb549jmGNNe5zet1R2rtUCjILmOE43bCgDG4 gXaVlCAcCC5IYVRomFa4V/v0sCFtbwgr0RDby+/7XVgPBjVopz2zqi/+HhE+J+6Fsi34 MPTxtuWyQ7XXv3nOtfakyoUlcVmzxfp0IXqb3T7A0L4rqC7GJQli/tVDodZiGLZk5rDj 9bPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wfTha0RigLRF06x85Kk644/HudxJSq0sHBStjRH/Nn4=; b=0zqaQmm7kn+DuRExY+DOmRpIpRBGNol/7nxD/xqp9tNeR/tLsXLUD0kUoNHLbEsgLL QqrFLOAraH2/jk7oRHLiij60d4uXhhOtDhiVO4TWZAZ2Ec6LsGesa0sCe97O/zg4KpzJ Y+UtUQ3Og/It0qYvlzeA3zldUl2TIgCLI0iyHLMzHIl1Fa/7HjmsYWzPfNpRS+jDK9I6 aLWCO3qOffYJYW1ROQvAcL9/C2djdZeddUsbeSN+97T0awAS9yL7IzeLRsAkjgksr6N3 ljRrukOAHIz+b1UkLOIGzL9y5RUlnwap7yPokHQ6c6RNUX4SByqD3xBB7ZXuKrLluOtR Zm1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rFYczh7O; 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 cw18si12592401edb.491.2021.08.03.08.53.41; Tue, 03 Aug 2021 08:54:05 -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=rFYczh7O; 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 S237033AbhHCPwg (ORCPT + 99 others); Tue, 3 Aug 2021 11:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237020AbhHCPwf (ORCPT ); Tue, 3 Aug 2021 11:52:35 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA6C0C061757 for ; Tue, 3 Aug 2021 08:52:23 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id m10-20020a17090a34cab0290176b52c60ddso5277746pjf.4 for ; Tue, 03 Aug 2021 08:52:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wfTha0RigLRF06x85Kk644/HudxJSq0sHBStjRH/Nn4=; b=rFYczh7OBxM9JDHqgnQjjKawvjkcAlXiwLtw1NUXoBcPHNvlH8+Riq7uzLzqC4MFHm q6hxcE1bwO6V+PIxXb0P4VYdjY6gUWKYiXBZcqHZA3ckSEq5oHSqtHRvce4Vtv3Lko7F i0AWXdE1YMkJbGFOR9NnWrNPjhtSAAZstmy6zZ81IQ8zK8tjyKrwnBm1C+iYbxFokDue nE8dWZrsiuMDtOW/4/nC9Gt4RzduxNB79ohlSVrzlH3/U/rsUSWEDou5AaWuOpfohtN6 KR5AwpAXQBxTemIwhdhHvBEcedU88A58Mck3KWMrla/Xr4elREm8wx9ygqspfYWLwZK+ 66ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wfTha0RigLRF06x85Kk644/HudxJSq0sHBStjRH/Nn4=; b=hulfmpN3aIgogR3fz+wsDBmkcRe+10C9d26NMU3gK+y5leGXUreEHDYD5tbZgKl8wn 5hDtkrXQG1Lwv+cSQouxl3yA9UcV2WXbXWZ1N1ntfnG390d8rNKCIdPs8APw8rTwwEeL hoLOkdnvC1uWCP6rT/GQa5xBBYUFuvBMcb0iqZsatDsdbYjhfIJIdShWUuR0iqS2IMxd m4e3UCGLhRaxbRGmttqshItdSKwMUksC+cOZsIv32dwx3f+YGWkRB67599zvIKd8k58W ui1p6BYA0lFrq1cZ1uQlcqg8y//2S9q92PgkZgCJJxT036+W9Bl8VpoSCnewbXztL9n3 v9dA== X-Gm-Message-State: AOAM533Dyo4gilWPHxvZkyjO7YyaKY0L3Wbyv3PoIduSr1vug8hNE36p N6R5LVDRNrofMvvl0pNEt/X3yg== X-Received: by 2002:a63:1b5c:: with SMTP id b28mr489782pgm.175.1628005943381; Tue, 03 Aug 2021 08:52:23 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id z33sm11742433pga.20.2021.08.03.08.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 08:52:22 -0700 (PDT) Date: Tue, 3 Aug 2021 09:52:20 -0600 From: Mathieu Poirier To: Sebastian Andrzej Siewior Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, Peter Zijlstra , Suzuki K Poulose , Mike Leach , Leo Yan , Alexander Shishkin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 14/38] coresight: Replace deprecated CPU-hotplug functions. Message-ID: <20210803155220.GA3091608@p14s> References: <20210803141621.780504-1-bigeasy@linutronix.de> <20210803141621.780504-15-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210803141621.780504-15-bigeasy@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 03, 2021 at 04:15:57PM +0200, Sebastian Andrzej Siewior wrote: > 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(); > Applied - thanks, Mathieu > if (ret) { > dev_err(dev, "CPU%d debug arch init failed\n", drvdata->cpu); > -- > 2.32.0 >