Home
last modified time | relevance | path

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

/linux/drivers/cpufreq/
H A Damd-pstate.c204 static int msr_get_epp(struct amd_cpudata *cpudata) in msr_get_epp() argument
209 ret = rdmsrq_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, &value); in msr_get_epp()
220 static inline int amd_pstate_get_epp(struct amd_cpudata *cpudata) in amd_pstate_get_epp() argument
222 return static_call(amd_pstate_get_epp)(cpudata); in amd_pstate_get_epp()
225 static int shmem_get_epp(struct amd_cpudata *cpudata) in shmem_get_epp() argument
230 ret = cppc_get_epp_perf(cpudata->cpu, &epp); in shmem_get_epp()
242 struct amd_cpudata *cpudata = policy->driver_data; in msr_update_perf() local
245 value = prev = READ_ONCE(cpudata->cppc_req_cached); in msr_update_perf()
253 union perf_cached perf = READ_ONCE(cpudata->perf); in msr_update_perf()
255 trace_call__amd_pstate_epp_perf(cpudata->cpu, in msr_update_perf()
[all …]
H A Dintel_pstate.c229 struct cpudata { struct
270 static struct cpudata **all_cpu_data; argument
295 u64 (*get_val)(struct cpudata*, int pstate);
296 void (*get_vid)(struct cpudata *);
444 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits()
500 struct cpudata *cpu; in intel_pstate_exit_perf_limits()
535 static int intel_pstate_freq_to_hwp_rel(struct cpudata *cpu, int freq, in intel_pstate_freq_to_hwp_rel()
554 static int intel_pstate_freq_to_hwp(struct cpudata *cpu, int freq) in intel_pstate_freq_to_hwp()
570 struct cpudata *cpu = all_cpu_data[0]; in min_perf_pct_min()
577 static s16 intel_pstate_get_epp(struct cpudata *cpu_data, u64 hwp_req_data) in intel_pstate_get_epp()
[all …]