Home
last modified time | relevance | path

Searched refs:cpudata (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/cpufreq/
H A Damd-pstate.c183 static s16 amd_pstate_get_epp(struct amd_cpudata *cpudata, u64 cppc_req_cached) in amd_pstate_get_epp() argument
190 epp = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, in amd_pstate_get_epp()
197 ret = cppc_get_epp_perf(cpudata->cpu, &epp); in amd_pstate_get_epp()
207 static int amd_pstate_get_energy_pref_index(struct amd_cpudata *cpudata) in amd_pstate_get_energy_pref_index() argument
212 epp = amd_pstate_get_epp(cpudata, 0); in amd_pstate_get_energy_pref_index()
236 static void msr_update_perf(struct amd_cpudata *cpudata, u32 min_perf, in msr_update_perf() argument
240 wrmsrl(MSR_AMD_CPPC_REQ, READ_ONCE(cpudata->cppc_req_cached)); in msr_update_perf()
242 wrmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, in msr_update_perf()
243 READ_ONCE(cpudata->cppc_req_cached)); in msr_update_perf()
248 static inline void amd_pstate_update_perf(struct amd_cpudata *cpudata, in amd_pstate_update_perf() argument
[all …]
H A Damd-pstate-ut.c131 struct amd_cpudata *cpudata = NULL; in amd_pstate_ut_check_perf() local
137 cpudata = policy->driver_data; in amd_pstate_ut_check_perf()
165 if (highest_perf != READ_ONCE(cpudata->highest_perf) && !cpudata->hw_prefcore) { in amd_pstate_ut_check_perf()
167 __func__, cpu, highest_perf, cpudata->highest_perf); in amd_pstate_ut_check_perf()
170 if ((nominal_perf != READ_ONCE(cpudata->nominal_perf)) || in amd_pstate_ut_check_perf()
171 (lowest_nonlinear_perf != READ_ONCE(cpudata->lowest_nonlinear_perf)) || in amd_pstate_ut_check_perf()
172 (lowest_perf != READ_ONCE(cpudata->lowest_perf))) { in amd_pstate_ut_check_perf()
175 __func__, cpu, nominal_perf, cpudata->nominal_perf, in amd_pstate_ut_check_perf()
176 lowest_nonlinear_perf, cpudata->lowest_nonlinear_perf, in amd_pstate_ut_check_perf()
177 lowest_perf, cpudata->lowest_perf); in amd_pstate_ut_check_perf()
[all …]
H A Dintel_pstate.c227 struct cpudata { struct
265 static struct cpudata **all_cpu_data; argument
290 u64 (*get_val)(struct cpudata*, int pstate);
291 void (*get_vid)(struct cpudata *);
441 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits()
497 struct cpudata *cpu; in intel_pstate_exit_perf_limits()
532 static int intel_pstate_freq_to_hwp_rel(struct cpudata *cpu, int freq, in intel_pstate_freq_to_hwp_rel()
551 static int intel_pstate_freq_to_hwp(struct cpudata *cpu, int freq) in intel_pstate_freq_to_hwp()
567 static void intel_pstate_hybrid_hwp_adjust(struct cpudata *cpu) in intel_pstate_hybrid_hwp_adjust()
610 struct cpudata *cpu = all_cpu_data[0]; in min_perf_pct_min()
[all …]
/linux/drivers/hwtracing/coresight/
H A Dcoresight-trbe.c70 struct trbe_cpudata *cpudata; member
139 struct trbe_cpudata __percpu *cpudata; member
148 static void trbe_check_errata(struct trbe_cpudata *cpudata) in trbe_check_errata() argument
158 set_bit(i, cpudata->errata); in trbe_check_errata()
162 static inline bool trbe_has_erratum(struct trbe_cpudata *cpudata, int i) in trbe_has_erratum() argument
164 return (i < TRBE_ERRATA_MAX) && test_bit(i, cpudata->errata); in trbe_has_erratum()
167 static inline bool trbe_may_overwrite_in_fill_mode(struct trbe_cpudata *cpudata) in trbe_may_overwrite_in_fill_mode() argument
169 return trbe_has_erratum(cpudata, TRBE_WORKAROUND_OVERWRITE_FILL_MODE); in trbe_may_overwrite_in_fill_mode()
172 static inline bool trbe_may_write_out_of_range(struct trbe_cpudata *cpudata) in trbe_may_write_out_of_range() argument
174 return trbe_has_erratum(cpudata, TRBE_WORKAROUND_WRITE_OUT_OF_RANGE); in trbe_may_write_out_of_range()
[all …]
/linux/arch/x86/kernel/cpu/
H A Dcommon.c2134 unsigned long cpudata = vdso_encode_cpunode(cpu, early_cpu_to_node(cpu)); in setup_getcpu() local
2138 wrmsr(MSR_TSC_AUX, cpudata, 0); in setup_getcpu()
2141 d.limit0 = cpudata; in setup_getcpu()
2142 d.limit1 = cpudata >> 16; in setup_getcpu()