Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2471503pxy; Tue, 3 Aug 2021 07:19:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUdtPH7X23/TUJyNrA/ZIHL5H0Gf/BPEiY5byxEPigAMnf+4vohqFE+FKwVdp6RiNbpZOc X-Received: by 2002:a02:a797:: with SMTP id e23mr19897338jaj.121.1628000376338; Tue, 03 Aug 2021 07:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628000376; cv=none; d=google.com; s=arc-20160816; b=eQn8m909iPisasCE70maUxSO1C6WTlsORYyHaIJ19lixoc81ojhqotTGaB0Y/Bt0I7 xKYhRM98v+qelFFhwIBE+g6ZZMbG5L3YjSJyXHM0129H7FkuBEy5/+ob1QUVN6qGk9kA RBJgiQE4QXqCNYtd/8zYweMajuTKwkUDZXLZhm3o2rNGbWnVcFGwXavhKxAKe7wTulyb lMrVpM02wZ3I9mXXGl4gsTjd0mFHe0/kRoroH9qFt56S8tSpDaUfwld7e0YuG7N533tg C0DcY9PhtYJzqKjL2j3/PANKvwnsyLrCVvtFo8T2+sc3ZwNeDqMI5Yfqs4ngVatafIf/ JXWg== 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=VREIiyPB44EOoA48Hgenjjr9/qg/9YBkMbLcGe4Ifxc=; b=bb+7ULPa+sTReeMI8TF1EyhhawcWAjxWSc7KYoLzpGUvuuIE2j+rNIsRa9PX0lWzyX +wiftE7Be4KD+VE8kQehqbg5kPnGDyHzAXQLDTHIn1aNAUJWNVCfjVVfvEkdlYZiA9Be Hm6fZunDHWfNKnQXpDJZyZODRH7G1OzwNORngj1foulR6IwExqy1OBpG54UgvwFPch5f VsPN5dHbInq9doOv2Cm2GpUvPbYw1/nCirMuGNvkADVngrWxtDFmokODVwKpubz33E4j Wfktz+skyskW8lS2TEuZfrldWbOQyMV0qhuJL3LMlxIUo3BoGtnC4o87xAkts1/S3d+b ZS9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="MP/FrbkM"; dkim=neutral (no key) header.i=@linutronix.de header.b=7LMkNTET; 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 t15si15025085ilg.47.2021.08.03.07.19.22; Tue, 03 Aug 2021 07:19:36 -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="MP/FrbkM"; dkim=neutral (no key) header.i=@linutronix.de header.b=7LMkNTET; 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 S236744AbhHCOSD (ORCPT + 99 others); Tue, 3 Aug 2021 10:18:03 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56910 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236546AbhHCORV (ORCPT ); Tue, 3 Aug 2021 10:17:21 -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=VREIiyPB44EOoA48Hgenjjr9/qg/9YBkMbLcGe4Ifxc=; b=MP/FrbkMnSZirNvCz/eSh7rmt6Kfps13//1GT/d1sUGObeQ3IJZBLz4iP53RsSGViwMqf9 DQfh2eR8o/jsNjd6MIIFpOX0tTOosCzq8JY3Ed1Bp1BMYwhnOSnJSZI4gmF1Jg9rNtsMUy gQZAHOTTRzziBQ7s7RW0XMcxjGtmL50f9Q9p7wqMo3O7W2XSTQj8mTVDxOXq4tYFe1tBTf SDRFCo5pCqj1qErhihHyvIO7sZXBHXQhRhksFAbiwuxSHMMX1qci00vLOlfxjYbIGne6HH k59GKVAr/9tDkHel1yBwp8MxBlvFtkFOrUO1rC7zB+Z/sNuVL2v4keCuOUbpTw== 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=VREIiyPB44EOoA48Hgenjjr9/qg/9YBkMbLcGe4Ifxc=; b=7LMkNTETBbeh+KxxNNf7KJWthuJ3w788acZientu0FcEkqE8rzIAxWZnDZJVmfMdyXXx3S FwhX492j4K0VsRCg== To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, Peter Zijlstra , Sebastian Andrzej Siewior , Robin Holt , Steve Wahl , Mike Travis , Arnd Bergmann , Greg Kroah-Hartman Subject: [PATCH 16/38] sgi-xpc: Replace deprecated CPU-hotplug functions. Date: Tue, 3 Aug 2021 16:15:59 +0200 Message-Id: <20210803141621.780504-17-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: Robin Holt Cc: Steve Wahl Cc: Mike Travis Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Signed-off-by: Sebastian Andrzej Siewior --- drivers/misc/sgi-xp/xpc_uv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/sgi-xp/xpc_uv.c b/drivers/misc/sgi-xp/xpc_uv.c index 7791bde81a368..ba9ae0e2df0fe 100644 --- a/drivers/misc/sgi-xp/xpc_uv.c +++ b/drivers/misc/sgi-xp/xpc_uv.c @@ -1742,7 +1742,7 @@ xpc_init_mq_node(int nid) { int cpu; =20 - get_online_cpus(); + cpus_read_lock(); =20 for_each_cpu(cpu, cpumask_of_node(nid)) { xpc_activate_mq_uv =3D @@ -1753,7 +1753,7 @@ xpc_init_mq_node(int nid) break; } if (IS_ERR(xpc_activate_mq_uv)) { - put_online_cpus(); + cpus_read_unlock(); return PTR_ERR(xpc_activate_mq_uv); } =20 @@ -1767,11 +1767,11 @@ xpc_init_mq_node(int nid) } if (IS_ERR(xpc_notify_mq_uv)) { xpc_destroy_gru_mq_uv(xpc_activate_mq_uv); - put_online_cpus(); + cpus_read_unlock(); return PTR_ERR(xpc_notify_mq_uv); } =20 - put_online_cpus(); + cpus_read_unlock(); return 0; } =20 --=20 2.32.0