Skip to content

Commit d77d488

Browse files
committed
cpufreq: intel_pstate: Shorten a couple of long names
The names of the INTEL_PSTATE_DEFAULT_SAMPLING_INTERVAL symbol and the get_target_pstate_use_cpu_load() function don't need to be so long any more, so make them shorter. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent a891283 commit d77d488

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/cpufreq/intel_pstate.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include <asm/cpufeature.h>
3838
#include <asm/intel-family.h>
3939

40-
#define INTEL_PSTATE_DEFAULT_SAMPLING_INTERVAL (10 * NSEC_PER_MSEC)
40+
#define INTEL_PSTATE_SAMPLING_INTERVAL (10 * NSEC_PER_MSEC)
4141

4242
#define INTEL_CPUFREQ_TRANSITION_LATENCY 20000
4343
#define INTEL_CPUFREQ_TRANSITION_DELAY 500
@@ -1438,7 +1438,7 @@ static inline int32_t get_avg_pstate(struct cpudata *cpu)
14381438
cpu->sample.core_avg_perf);
14391439
}
14401440

1441-
static inline int32_t get_target_pstate_use_cpu_load(struct cpudata *cpu)
1441+
static inline int32_t get_target_pstate(struct cpudata *cpu)
14421442
{
14431443
struct sample *sample = &cpu->sample;
14441444
int32_t busy_frac, boost;
@@ -1503,7 +1503,7 @@ static void intel_pstate_adjust_pstate(struct cpudata *cpu)
15031503

15041504
update_turbo_state();
15051505

1506-
target_pstate = get_target_pstate_use_cpu_load(cpu);
1506+
target_pstate = get_target_pstate(cpu);
15071507
target_pstate = intel_pstate_prepare_request(cpu, target_pstate);
15081508
trace_cpu_frequency(target_pstate * cpu->pstate.scaling, cpu->cpu);
15091509
intel_pstate_update_pstate(cpu, target_pstate);
@@ -1545,7 +1545,7 @@ static void intel_pstate_update_util(struct update_util_data *data, u64 time,
15451545
}
15461546
cpu->last_update = time;
15471547
delta_ns = time - cpu->sample.time;
1548-
if ((s64)delta_ns < INTEL_PSTATE_DEFAULT_SAMPLING_INTERVAL)
1548+
if ((s64)delta_ns < INTEL_PSTATE_SAMPLING_INTERVAL)
15491549
return;
15501550

15511551
set_pstate:

0 commit comments

Comments
 (0)