Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp522624pxu; Thu, 7 Jan 2021 10:48:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0c6qNV5EkbqURiIEq2x49BpxihqXqYS7NAWkRYe2RyCF3Ff8eP8CEWt5ckE5+/TLjIIYY X-Received: by 2002:a17:906:1291:: with SMTP id k17mr143692ejb.288.1610045333804; Thu, 07 Jan 2021 10:48:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610045333; cv=none; d=google.com; s=arc-20160816; b=iEW8IXgt2M64Qe1ldVKGSRCxrpuP/SB49Hd5FG1Pxjb7oaRuHhp7KKeKuluM+/+H9i NCtlzafrb6KT/9MdQow5v9kqdRvfm+Tu211eaj0JEPLqeCUgAihnSERkWODfcD3dLzCy HFPw26l0uXofBGiqNd9oYnTKhv3kOw2+Vz7ipdbrj/aDDr/CR4BkoaqPM6BqvzmxDw8A idBwxuv+p2nfm+wKuDxpBsf+YW3stgxGNs5oVe5tZrTicyZasMN/0f36+VlzKzOt95Et NbT2N4Edcrja3SeVSsyFhKenDDZeKBWpODgzIsmCSEXbqjpP1boqX3Ibeb8UIJ7wzs8/ f+9w== 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:from; bh=5UVu6n/+Nm2+qx5Vj7wOovWhpP3NxpT9BWmHHi0LjH0=; b=SUKXb4TNodzXNm5Q9Yvq6EmEh+kXSuN+zfUdND9SOPJJZrSJT+sADOyLEhXPN/7fLx bMB1kZ7Jt0P9Fa36PDeZa3+JVDdUxwPySIwWR7UOs/4x1oG6/Kefc4qrKmcBfWIRLNU2 yA5QOTfpyJlxPXa8PRcps876CUl768bGGRMWd+ZIw7BPfZf9t+/FLkanwXVPh2HEZety 3GRLn8zkg2cfouZWK/e0h18iFApiTzoIrL7FdmTylzKgq39/RuIsBz1HosMCPR4Kmq8c Rcw8puMS/7lEe4vM7McHPpLFy79zzTBppNsYDIfA325Xqek5cVHTljpTrVGxXhScn24g iLAA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si2394067eja.511.2021.01.07.10.48.29; Thu, 07 Jan 2021 10:48:53 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729250AbhAGSpN (ORCPT + 99 others); Thu, 7 Jan 2021 13:45:13 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:50092 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728088AbhAGSpM (ORCPT ); Thu, 7 Jan 2021 13:45:12 -0500 Received: from 89-64-81-64.dynamic.chello.pl (89.64.81.64) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.537) id 8eddfbd0a4e78645; Thu, 7 Jan 2021 19:44:30 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Srinivas Pandruvada , Chen Yu Subject: [PATCH v1 3/3] cpufreq: intel_pstate: Rename two functions Date: Thu, 07 Jan 2021 19:44:18 +0100 Message-ID: <6740994.gz1i9f73Yi@kreacher> In-Reply-To: <5701645.lOV4Wx5bFT@kreacher> References: <5701645.lOV4Wx5bFT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Rename intel_cpufreq_adjust_hwp() and intel_cpufreq_adjust_perf_ctl() to intel_cpufreq_hwp_update() and intel_cpufreq_perf_ctl_update(), respectively, to avoid possible confusion with the ->adjist_perf() callback function, intel_cpufreq_adjust_perf(). Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/intel_pstate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) Index: linux-pm/drivers/cpufreq/intel_pstate.c =================================================================== --- linux-pm.orig/drivers/cpufreq/intel_pstate.c +++ linux-pm/drivers/cpufreq/intel_pstate.c @@ -2527,7 +2527,7 @@ static void intel_cpufreq_trace(struct c fp_toint(cpu->iowait_boost * 100)); } -static void intel_cpufreq_adjust_hwp(struct cpudata *cpu, u32 min, u32 max, +static void intel_cpufreq_hwp_update(struct cpudata *cpu, u32 min, u32 max, u32 desired, bool fast_switch) { u64 prev = READ_ONCE(cpu->hwp_req_cached), value = prev; @@ -2551,7 +2551,7 @@ static void intel_cpufreq_adjust_hwp(str wrmsrl_on_cpu(cpu->cpu, MSR_HWP_REQUEST, value); } -static void intel_cpufreq_adjust_perf_ctl(struct cpudata *cpu, +static void intel_cpufreq_perf_ctl_update(struct cpudata *cpu, u32 target_pstate, bool fast_switch) { if (fast_switch) @@ -2573,10 +2573,10 @@ static int intel_cpufreq_update_pstate(s int max_pstate = policy->strict_target ? target_pstate : cpu->max_perf_ratio; - intel_cpufreq_adjust_hwp(cpu, target_pstate, max_pstate, 0, + intel_cpufreq_hwp_update(cpu, target_pstate, max_pstate, 0, fast_switch); } else if (target_pstate != old_pstate) { - intel_cpufreq_adjust_perf_ctl(cpu, target_pstate, fast_switch); + intel_cpufreq_perf_ctl_update(cpu, target_pstate, fast_switch); } cpu->pstate.current_pstate = target_pstate; @@ -2674,7 +2674,7 @@ static void intel_cpufreq_adjust_perf(un target_pstate = clamp_t(int, target_pstate, min_pstate, max_pstate); - intel_cpufreq_adjust_hwp(cpu, min_pstate, max_pstate, target_pstate, true); + intel_cpufreq_hwp_update(cpu, min_pstate, max_pstate, target_pstate, true); cpu->pstate.current_pstate = target_pstate; intel_cpufreq_trace(cpu, INTEL_PSTATE_TRACE_FAST_SWITCH, old_pstate);