From patchwork Thu Sep 9 14:38:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thermal-bot for Julien Panis X-Patchwork-Id: 508977 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=-20.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED 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 0739FC433EF for ; Thu, 9 Sep 2021 14:38:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E4C5F61205 for ; Thu, 9 Sep 2021 14:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344725AbhIIOkA (ORCPT ); Thu, 9 Sep 2021 10:40:00 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60060 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244879AbhIIOjw (ORCPT ); Thu, 9 Sep 2021 10:39:52 -0400 Date: Thu, 09 Sep 2021 14:38:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1631198322; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l0fBsRaNjLvN8TSv8vAK7C+zHaues0ROUfZtgWDVqUg=; b=1DCV28qgqoJoRqqEBeT6ZPIM+h+/VHeRg8ZwagtQwUd6rMT99bA6MqtKjZlYFWe8jONIZA 7SjysyPRlvoyatYBq5/FmWj5YrNEaeLrsqZ5uxDU480fMsAQi/i/oGMRjS+REBqeGVUO15 zABGJdU8oKPomhzkvOEF0oTAodhciX6ELYYrjpvjm3szekeMdIofHJw7WfkZ3V3ik1+EE2 m8OdpW1h4twatPVlkHCxudoA9bQvkdeGPGxBKs31T0YYVSf8tsC2OWDkKzjo3gceKf7/1f O5FYjHVbIBflKNAKdpKXQs9MrXGzZLJ3qhtT4ihzMDaGlt1M4yS+d4PfQgYMvA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1631198322; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l0fBsRaNjLvN8TSv8vAK7C+zHaues0ROUfZtgWDVqUg=; b=oPSKTOmfbWlB3yddNqY8XzAeCML+iQKCPRbeHCogUL92GMOo5zYdECQwfN1bfEI0UbuQYe BS/IFfpVV4S0GsAg== From: "thermal-bot for Sebastian Andrzej Siewior" Sender: tip-bot2@linutronix.de Reply-to: linux-pm@vger.kernel.org To: linux-pm@vger.kernel.org Subject: [thermal: thermal/next] thermal/drivers/intel_powerclamp: Replace deprecated CPU-hotplug functions. Cc: Zhang Rui , Daniel Lezcano , Amit Kucheria , linux-pm@vger.kernel.org, Sebastian Andrzej Siewior In-Reply-To: <20210803141621.780504-20-bigeasy@linutronix.de> References: <20210803141621.780504-20-bigeasy@linutronix.de> MIME-Version: 1.0 Message-ID: <163119832150.25758.17104675699410065503.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The following commit has been merged into the thermal/next branch of thermal: Commit-ID: d31eb7c1a2288f61df75558f59328be01a264300 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//d31eb7c1a2288f61df75558f59328be01a264300 Author: Sebastian Andrzej Siewior AuthorDate: Tue, 03 Aug 2021 16:16:02 +02:00 Committer: Daniel Lezcano CommitterDate: Sat, 14 Aug 2021 12:51:42 +02:00 thermal/drivers/intel_powerclamp: Replace deprecated CPU-hotplug functions. 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: Zhang Rui Cc: Daniel Lezcano Cc: Amit Kucheria Cc: linux-pm@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210803141621.780504-20-bigeasy@linutronix.de --- drivers/thermal/intel/intel_powerclamp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/intel/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c index b0eb5ec..a5b58ea 100644 --- a/drivers/thermal/intel/intel_powerclamp.c +++ b/drivers/thermal/intel/intel_powerclamp.c @@ -528,7 +528,7 @@ static int start_power_clamp(void) set_target_ratio = clamp(set_target_ratio, 0U, MAX_TARGET_RATIO - 1); /* prevent cpu hotplug */ - get_online_cpus(); + cpus_read_lock(); /* prefer BSP */ control_cpu = 0; @@ -542,7 +542,7 @@ static int start_power_clamp(void) for_each_online_cpu(cpu) { start_power_clamp_worker(cpu); } - put_online_cpus(); + cpus_read_unlock(); return 0; }