Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/cpufreq/ !
Damd-pstate.c90 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 …]
Damd-pstate-ut.c146 struct amd_cpudata *cpudata = NULL; in amd_pstate_ut_check_perf() local
154 cpudata = policy->driver_data; in amd_pstate_ut_check_perf()
180 if ((highest_perf != READ_ONCE(cpudata->highest_perf)) || in amd_pstate_ut_check_perf()
181 (nominal_perf != READ_ONCE(cpudata->nominal_perf)) || in amd_pstate_ut_check_perf()
182 (lowest_nonlinear_perf != READ_ONCE(cpudata->lowest_nonlinear_perf)) || in amd_pstate_ut_check_perf()
183 (lowest_perf != READ_ONCE(cpudata->lowest_perf))) { in amd_pstate_ut_check_perf()
186 __func__, cpu, highest_perf, cpudata->highest_perf, in amd_pstate_ut_check_perf()
187 nominal_perf, cpudata->nominal_perf, in amd_pstate_ut_check_perf()
188 lowest_nonlinear_perf, cpudata->lowest_nonlinear_perf, in amd_pstate_ut_check_perf()
189 lowest_perf, cpudata->lowest_perf); in amd_pstate_ut_check_perf()
[all …]
Dintel_pstate.c228 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()
480 struct cpudata *cpu; in intel_pstate_exit_perf_limits()
521 static void intel_pstate_hybrid_hwp_adjust(struct cpudata *cpu) in intel_pstate_hybrid_hwp_adjust()
555 struct cpudata *cpu; in update_turbo_state()
566 struct cpudata *cpu = all_cpu_data[0]; in min_perf_pct_min()
573 static s16 intel_pstate_get_epb(struct cpudata *cpu_data) in intel_pstate_get_epb()
[all …]
/linux-6.1.9/drivers/hwtracing/coresight/ !
Dcoresight-trbe.c69 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 …]
/linux-6.1.9/arch/x86/kernel/cpu/ !
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()