Searched refs:cpudata (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/cpufreq/ |
| H A D | amd-pstate.c | 197 static u8 msr_get_epp(struct amd_cpudata *cpudata) in msr_get_epp() argument 202 ret = rdmsrq_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, &value); in msr_get_epp() 213 static inline s16 amd_pstate_get_epp(struct amd_cpudata *cpudata) in amd_pstate_get_epp() argument 215 return static_call(amd_pstate_get_epp)(cpudata); in amd_pstate_get_epp() 218 static u8 shmem_get_epp(struct amd_cpudata *cpudata) in shmem_get_epp() argument 223 ret = cppc_get_epp_perf(cpudata->cpu, &epp); in shmem_get_epp() 235 struct amd_cpudata *cpudata = policy->driver_data; in msr_update_perf() local 238 value = prev = READ_ONCE(cpudata->cppc_req_cached); in msr_update_perf() 248 union perf_cached perf = READ_ONCE(cpudata->perf); in msr_update_perf() 250 trace_amd_pstate_epp_perf(cpudata->cpu, in msr_update_perf() [all …]
|
| H A D | intel_pstate.c | 229 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 static void intel_pstate_hybrid_hwp_adjust(struct cpudata *cpu) in intel_pstate_hybrid_hwp_adjust() 618 struct cpudata *cpu = all_cpu_data[0]; in min_perf_pct_min() [all …]
|
| H A D | amd-pstate-ut.c | 123 struct amd_cpudata *cpudata; in amd_pstate_ut_check_perf() local 128 cpudata = policy->driver_data; in amd_pstate_ut_check_perf() 154 cur_perf = READ_ONCE(cpudata->perf); in amd_pstate_ut_check_perf() 155 if (highest_perf != cur_perf.highest_perf && !cpudata->hw_prefcore) { in amd_pstate_ut_check_perf() 195 struct amd_cpudata *cpudata; in amd_pstate_ut_check_freq() local 200 cpudata = policy->driver_data; in amd_pstate_ut_check_freq() 202 if (!((policy->cpuinfo.max_freq >= cpudata->nominal_freq) && in amd_pstate_ut_check_freq() 203 (cpudata->nominal_freq > cpudata->lowest_nonlinear_freq) && in amd_pstate_ut_check_freq() 204 (cpudata->lowest_nonlinear_freq >= policy->cpuinfo.min_freq) && in amd_pstate_ut_check_freq() 207 __func__, cpu, policy->cpuinfo.max_freq, cpudata->nominal_freq, in amd_pstate_ut_check_freq() [all …]
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-trbe.c | 72 struct trbe_cpudata *cpudata; member 141 struct trbe_cpudata __percpu *cpudata; member 150 static void trbe_check_errata(struct trbe_cpudata *cpudata) in trbe_check_errata() argument 160 set_bit(i, cpudata->errata); in trbe_check_errata() 164 static bool trbe_has_erratum(struct trbe_cpudata *cpudata, int i) in trbe_has_erratum() argument 166 return (i < TRBE_ERRATA_MAX) && test_bit(i, cpudata->errata); in trbe_has_erratum() 169 static bool trbe_may_overwrite_in_fill_mode(struct trbe_cpudata *cpudata) in trbe_may_overwrite_in_fill_mode() argument 171 return trbe_has_erratum(cpudata, TRBE_WORKAROUND_OVERWRITE_FILL_MODE); in trbe_may_overwrite_in_fill_mode() 174 static bool trbe_may_write_out_of_range(struct trbe_cpudata *cpudata) in trbe_may_write_out_of_range() argument 176 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 D | common.c | 2335 unsigned long cpudata = vdso_encode_cpunode(cpu, early_cpu_to_node(cpu)); in setup_getcpu() local 2339 wrmsrq(MSR_TSC_AUX, cpudata); in setup_getcpu() 2342 d.limit0 = cpudata; in setup_getcpu() 2343 d.limit1 = cpudata >> 16; in setup_getcpu()
|