Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2470474pxy; Tue, 3 Aug 2021 07:18:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmy7J8s37cOl2+vRFQNMSaHPKIM83NoiPAYYHXkp/jWLDNS3q8qq0vzHOMBAF1XMztLuW3 X-Received: by 2002:a92:d344:: with SMTP id a4mr1518564ilh.230.1628000298652; Tue, 03 Aug 2021 07:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628000298; cv=none; d=google.com; s=arc-20160816; b=LNXOokN7hAYeIdWmtDs3XG6sngSZPdtxq68yHIz0WHs322E76v9Lsl68svGtr1RXNH qj5mkMO2qxY3nDn2vczgSbz6vrg6OYeYi4XkLncK0THEudUlE15I6EWXJHgtkvDNcMvj lJWwuYWl/ByeTjP3akR1Xbd0ZHG1+tmbMJ0qcx2l4qn2ZYuo5E51FcG3z6qraZR6B8PW GMT2M68a4eXlp/wjcsixa6XHAbzhAzoviqittK/Gd+FrgY0nZOYUvHgC1o0Wr/4f82bT ZFtTdbD14LHZEvqkszYxR/KlPjf3k+LTeC+xpAwuEhWKFgHJdNbRikNo4eCeG6GbVpM4 petQ== 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=cwrlDXH24IzEKOiVHeBOyZfb8HhrShrfYnaKPeVNnCo=; b=YY+QwnEI1DRkPKYkvmZ26X5/YXGa/xLAh0AQi/HIzDzEgwyt4Q2twPMUjSG/oIA4aJ Ybl6oSQoMu+Edzm+FuUgFdmS3j4qwwWhwtwN17LZ/G0PnInL5mbGVODyEFZHATgGSlaA haFGOhhJIB142TIBJcrnUwHHV5Tv9bRqGljFrsQRtj9FJutboNWJXWY2IfkpJxivQXp/ gzCVf+7119nR1GFLPCHb9Oszv8pyIwQv5yYqFYlnrcyiUU0kME9S/plfkoBynMN72kJ5 ooeMs6I8RplqQkRb0J4nQ5VM3NOkDOA6CaIOaTSdMNUGohamwRc1cV1MGxD5we2kYj24 C5PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="ZRMonc/8"; dkim=neutral (no key) header.i=@linutronix.de; 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.18.05; Tue, 03 Aug 2021 07:18:18 -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="ZRMonc/8"; dkim=neutral (no key) header.i=@linutronix.de; 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 S236616AbhHCOR0 (ORCPT + 99 others); Tue, 3 Aug 2021 10:17:26 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56880 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236465AbhHCORS (ORCPT ); Tue, 3 Aug 2021 10:17:18 -0400 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628000226; 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=cwrlDXH24IzEKOiVHeBOyZfb8HhrShrfYnaKPeVNnCo=; b=ZRMonc/85ksCCbHfdagARTThkDl8RLwbMbyPuMjYDpvEQ3XCO5lezJTSr0wrmrNHJb2nEz zEY5gF4yIFoQBaXP+upN479GSAmB6YYr3ysXr+7WUvc3gyVZ5Qn+EzMQJMV2ba26ca3o19 ZV7WBXleTd7fDnhAfgeZ17lPUeGuhsRLtFxRRbGPXPnbZJe5z4rFyJuDsTS3zZl8yNYpd2 +fZpmj/Sz8D8dWPdshpH9Duf0iaK7CfhKsAYeB/NyI3cOAUpc8y+S+0yHc+7awlNCT8RXl 3S7bNYt5lDRz7gZRhwkF4CX5Qz64bO/i/CsUrw7BVzMZfR2Nsn7yBFsgUaxvQA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628000226; 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=cwrlDXH24IzEKOiVHeBOyZfb8HhrShrfYnaKPeVNnCo=; b=qUq5efzjLGEIiYL/MaF+IHtyPVQ4VCTO0anL94WOH7kcr8fWjXC16kaOTUj1VH0Z2lHuSn +9ctiPj+Z6VByqCw== To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, Peter Zijlstra , Sebastian Andrzej Siewior , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Subject: [PATCH 05/38] s390/sclp: Replace deprecated CPU-hotplug functions. Date: Tue, 3 Aug 2021 16:15:48 +0200 Message-Id: <20210803141621.780504-6-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: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s390@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior --- drivers/s390/char/sclp_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/char/sclp_config.c b/drivers/s390/char/sclp_confi= g.c index 039b2074db7e5..c365110f2daec 100644 --- a/drivers/s390/char/sclp_config.c +++ b/drivers/s390/char/sclp_config.c @@ -50,12 +50,12 @@ static void sclp_cpu_capability_notify(struct work_stru= ct *work) =20 s390_update_cpu_mhz(); pr_info("CPU capability may have changed\n"); - get_online_cpus(); + cpus_read_lock(); for_each_online_cpu(cpu) { dev =3D get_cpu_device(cpu); kobject_uevent(&dev->kobj, KOBJ_CHANGE); } - put_online_cpus(); + cpus_read_unlock(); } =20 static void __ref sclp_cpu_change_notify(struct work_struct *work) --=20 2.32.0