From patchwork Tue Dec 4 22:40:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot for Kobe Wu X-Patchwork-Id: 10712647 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 810431923 for ; Tue, 4 Dec 2018 22:40:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 718E32BF87 for ; Tue, 4 Dec 2018 22:40:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65CE92BF93; Tue, 4 Dec 2018 22:40:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F128D2BF9F for ; Tue, 4 Dec 2018 22:40:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725905AbeLDWkT (ORCPT ); Tue, 4 Dec 2018 17:40:19 -0500 Received: from terminus.zytor.com ([198.137.202.136]:51299 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbeLDWkT (ORCPT ); Tue, 4 Dec 2018 17:40:19 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wB4Me9tl1037414 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 4 Dec 2018 14:40:09 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wB4Me90G1037411; Tue, 4 Dec 2018 14:40:09 -0800 Date: Tue, 4 Dec 2018 14:40:09 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: "tip-bot for Paul E. McKenney" Message-ID: Cc: linux-pm@vger.kernel.org, paulmck@linux.ibm.com, lenb@kernel.org, mingo@kernel.org, rjw@rjwysocki.net, hpa@zytor.com, viresh.kumar@linaro.org, srinivas.pandruvada@linux.intel.com, tglx@linutronix.de Reply-To: rjw@rjwysocki.net, hpa@zytor.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, srinivas.pandruvada@linux.intel.com, viresh.kumar@linaro.org, paulmck@linux.ibm.com, linux-pm@vger.kernel.org, mingo@kernel.org, lenb@kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip:core/rcu] cpufreq/intel_pstate: Replace synchronize_sched() with synchronize_rcu() Git-Commit-ID: 09659af30860789b6f7d1c7dd35a7e829d530db5 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Disposition: inline Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit-ID: 09659af30860789b6f7d1c7dd35a7e829d530db5 Gitweb: https://git.kernel.org/tip/09659af30860789b6f7d1c7dd35a7e829d530db5 Author: Paul E. McKenney AuthorDate: Mon, 5 Nov 2018 17:17:47 -0800 Committer: Paul E. McKenney CommitDate: Tue, 27 Nov 2018 09:21:38 -0800 cpufreq/intel_pstate: Replace synchronize_sched() with synchronize_rcu() Now that synchronize_rcu() waits for preempt-disable regions of code as well as RCU read-side critical sections, synchronize_sched() can be replaced by synchronize_rcu(). This commit therefore makes this change. Signed-off-by: Paul E. McKenney Cc: Srinivas Pandruvada Cc: Len Brown Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: --- drivers/cpufreq/intel_pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 9578312e43f2..ed124d72db76 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1930,7 +1930,7 @@ static void intel_pstate_clear_update_util_hook(unsigned int cpu) cpufreq_remove_update_util_hook(cpu); cpu_data->update_util_set = false; - synchronize_sched(); + synchronize_rcu(); } static int intel_pstate_get_max_freq(struct cpudata *cpu)