Searched refs:cpudata (Results 1 – 4 of 4) sorted by relevance
/drivers/cpufreq/ |
D | amd-pstate.c | 90 static int pstate_init_perf(struct amd_cpudata *cpudata) in pstate_init_perf() argument 95 int ret = rdmsrl_safe_on_cpu(cpudata->cpu, MSR_AMD_CPPC_CAP1, in pstate_init_perf() 109 WRITE_ONCE(cpudata->highest_perf, highest_perf); in pstate_init_perf() 111 WRITE_ONCE(cpudata->nominal_perf, AMD_CPPC_NOMINAL_PERF(cap1)); in pstate_init_perf() 112 WRITE_ONCE(cpudata->lowest_nonlinear_perf, AMD_CPPC_LOWNONLIN_PERF(cap1)); in pstate_init_perf() 113 WRITE_ONCE(cpudata->lowest_perf, AMD_CPPC_LOWEST_PERF(cap1)); in pstate_init_perf() 118 static int cppc_init_perf(struct amd_cpudata *cpudata) in cppc_init_perf() argument 123 int ret = cppc_get_perf_caps(cpudata->cpu, &cppc_perf); in cppc_init_perf() 131 WRITE_ONCE(cpudata->highest_perf, highest_perf); in cppc_init_perf() 133 WRITE_ONCE(cpudata->nominal_perf, cppc_perf.nominal_perf); in cppc_init_perf() [all …]
|
D | amd-pstate-ut.c | 128 struct amd_cpudata *cpudata = NULL; in amd_pstate_ut_check_perf() local 136 cpudata = policy->driver_data; in amd_pstate_ut_check_perf() 162 if ((highest_perf != READ_ONCE(cpudata->highest_perf)) || in amd_pstate_ut_check_perf() 163 (nominal_perf != READ_ONCE(cpudata->nominal_perf)) || in amd_pstate_ut_check_perf() 164 (lowest_nonlinear_perf != READ_ONCE(cpudata->lowest_nonlinear_perf)) || in amd_pstate_ut_check_perf() 165 (lowest_perf != READ_ONCE(cpudata->lowest_perf))) { in amd_pstate_ut_check_perf() 168 __func__, cpu, highest_perf, cpudata->highest_perf, in amd_pstate_ut_check_perf() 169 nominal_perf, cpudata->nominal_perf, in amd_pstate_ut_check_perf() 170 lowest_nonlinear_perf, cpudata->lowest_nonlinear_perf, in amd_pstate_ut_check_perf() 171 lowest_perf, cpudata->lowest_perf); in amd_pstate_ut_check_perf() [all …]
|
D | intel_pstate.c | 228 struct cpudata { struct 266 static struct cpudata **all_cpu_data; argument 291 u64 (*get_val)(struct cpudata*, int pstate); 292 void (*get_vid)(struct cpudata *); 410 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits() 466 struct cpudata *cpu; in intel_pstate_exit_perf_limits() 496 static int intel_pstate_freq_to_hwp_rel(struct cpudata *cpu, int freq, in intel_pstate_freq_to_hwp_rel() 515 static int intel_pstate_freq_to_hwp(struct cpudata *cpu, int freq) in intel_pstate_freq_to_hwp() 531 static void intel_pstate_hybrid_hwp_adjust(struct cpudata *cpu) in intel_pstate_hybrid_hwp_adjust() 566 struct cpudata *cpu; in update_turbo_state() [all …]
|
/drivers/hwtracing/coresight/ |
D | coresight-trbe.c | 69 struct trbe_cpudata *cpudata; member 138 struct trbe_cpudata __percpu *cpudata; member 147 static void trbe_check_errata(struct trbe_cpudata *cpudata) in trbe_check_errata() argument 157 set_bit(i, cpudata->errata); in trbe_check_errata() 161 static inline bool trbe_has_erratum(struct trbe_cpudata *cpudata, int i) in trbe_has_erratum() argument 163 return (i < TRBE_ERRATA_MAX) && test_bit(i, cpudata->errata); in trbe_has_erratum() 166 static inline bool trbe_may_overwrite_in_fill_mode(struct trbe_cpudata *cpudata) in trbe_may_overwrite_in_fill_mode() argument 168 return trbe_has_erratum(cpudata, TRBE_WORKAROUND_OVERWRITE_FILL_MODE); in trbe_may_overwrite_in_fill_mode() 171 static inline bool trbe_may_write_out_of_range(struct trbe_cpudata *cpudata) in trbe_may_write_out_of_range() argument 173 return trbe_has_erratum(cpudata, TRBE_WORKAROUND_WRITE_OUT_OF_RANGE); in trbe_may_write_out_of_range() [all …]
|