Home
last modified time | relevance | path

Searched refs:cpu_data (Results 1 – 25 of 36) sorted by relevance

12

/drivers/cpuidle/governors/
Dteo.c207 struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, cpu); in teo_cpu_get_util_threshold() local
208 return cpu_data->util_threshold; in teo_cpu_get_util_threshold()
213 struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, cpu); in teo_cpu_set_util_threshold() local
214 cpu_data->util_threshold = util; in teo_cpu_set_util_threshold()
224 static bool teo_cpu_is_utilized(int cpu, struct teo_cpu *cpu_data) in teo_cpu_is_utilized() argument
226 return sched_cpu_util(cpu, arch_scale_cpu_capacity(cpu)) > cpu_data->util_threshold; in teo_cpu_is_utilized()
229 static bool teo_cpu_is_utilized(int cpu, struct teo_cpu *cpu_data) in teo_cpu_is_utilized() argument
242 struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu); in teo_update() local
246 if (cpu_data->time_span_ns >= cpu_data->sleep_length_ns) { in teo_update()
276 cpu_data->total = 0; in teo_update()
[all …]
/drivers/cpufreq/
Dcppc_cpufreq.c72 struct cppc_cpudata *cpu_data; member
80 static int cppc_perf_from_fbctrs(struct cppc_cpudata *cpu_data,
105 struct cppc_cpudata *cpu_data; in cppc_scale_freq_workfn() local
110 cpu_data = cppc_fi->cpu_data; in cppc_scale_freq_workfn()
117 perf = cppc_perf_from_fbctrs(cpu_data, &cppc_fi->prev_perf_fb_ctrs, in cppc_scale_freq_workfn()
122 local_freq_scale = div64_u64(perf, cpu_data->perf_caps.highest_perf); in cppc_scale_freq_workfn()
166 cppc_fi->cpu_data = policy->driver_data; in cppc_cpufreq_cpu_fie_init()
311 static unsigned int cppc_cpufreq_perf_to_khz(struct cppc_cpudata *cpu_data, in cppc_cpufreq_perf_to_khz() argument
314 struct cppc_perf_caps *caps = &cpu_data->perf_caps; in cppc_cpufreq_perf_to_khz()
336 static unsigned int cppc_cpufreq_khz_to_perf(struct cppc_cpudata *cpu_data, in cppc_cpufreq_khz_to_perf() argument
[all …]
Dintel_pstate.c581 static s16 intel_pstate_get_epb(struct cpudata *cpu_data) in intel_pstate_get_epb() argument
589 ret = rdmsrl_on_cpu(cpu_data->cpu, MSR_IA32_ENERGY_PERF_BIAS, &epb); in intel_pstate_get_epb()
596 static s16 intel_pstate_get_epp(struct cpudata *cpu_data, u64 hwp_req_data) in intel_pstate_get_epp() argument
606 epp = rdmsrl_on_cpu(cpu_data->cpu, MSR_HWP_REQUEST, in intel_pstate_get_epp()
614 epp = intel_pstate_get_epb(cpu_data); in intel_pstate_get_epp()
664 static int intel_pstate_get_energy_pref_index(struct cpudata *cpu_data, int *raw_epp) in intel_pstate_get_energy_pref_index() argument
670 epp = intel_pstate_get_epp(cpu_data, 0); in intel_pstate_get_energy_pref_index()
728 static int intel_pstate_set_energy_pref_index(struct cpudata *cpu_data, in intel_pstate_set_energy_pref_index() argument
736 epp = cpu_data->epp_default; in intel_pstate_set_energy_pref_index()
749 if (epp > 0 && cpu_data->policy == CPUFREQ_POLICY_PERFORMANCE) in intel_pstate_set_energy_pref_index()
[all …]
Dqoriq-cpufreq.c28 struct cpu_data { struct
163 struct cpu_data *data; in qoriq_cpufreq_cpu_init()
230 struct cpu_data *data = policy->driver_data; in qoriq_cpufreq_cpu_exit()
244 struct cpu_data *data = policy->driver_data; in qoriq_cpufreq_target()
Damd_freq_sensitivity.c37 static DEFINE_PER_CPU(struct cpu_data_t, cpu_data);
46 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); in amd_powersave_bias_target()
Dsc520_freq.c74 struct cpuinfo_x86 *c = &cpu_data(0); in sc520_freq_cpu_init()
Delanfreq.c146 struct cpuinfo_x86 *c = &cpu_data(0); in elanfreq_cpu_init()
Dspeedstep-centrino.c236 struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); in centrino_cpu_init_table()
347 struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); in centrino_cpu_init()
Dacpi-cpufreq.c183 struct cpuinfo_x86 *cpu = &cpu_data(cpuid); in check_est_cpu()
190 struct cpuinfo_x86 *cpu = &cpu_data(cpuid); in check_amd_hwpstate_cpu()
678 struct cpuinfo_x86 *c = &cpu_data(cpu); in acpi_cpufreq_cpu_init()
Dp4-clockmod.c157 struct cpuinfo_x86 *c = &cpu_data(policy->cpu); in cpufreq_p4_cpu_init()
Dlongrun.c166 struct cpuinfo_x86 *c = &cpu_data(0); in longrun_determine_freqs()
Dspeedstep-lib.c256 struct cpuinfo_x86 *c = &cpu_data(0); in speedstep_detect_processor()
Dlonghaul.c761 struct cpuinfo_x86 *c = &cpu_data(0); in longhaul_cpu_init()
919 struct cpuinfo_x86 *c = &cpu_data(0); in longhaul_init()
De_powersaver.c183 struct cpuinfo_x86 *c = &cpu_data(0); in eps_cpu_init()
/drivers/acpi/
Dcppc_acpi.c441 int acpi_get_psd_map(unsigned int cpu, struct cppc_cpudata *cpu_data) in acpi_get_psd_map() argument
457 cpumask_set_cpu(cpu, cpu_data->shared_cpu_map); in acpi_get_psd_map()
464 cpu_data->shared_type = CPUFREQ_SHARED_TYPE_ALL; in acpi_get_psd_map()
466 cpu_data->shared_type = CPUFREQ_SHARED_TYPE_HW; in acpi_get_psd_map()
468 cpu_data->shared_type = CPUFREQ_SHARED_TYPE_ANY; in acpi_get_psd_map()
489 cpumask_set_cpu(i, cpu_data->shared_cpu_map); in acpi_get_psd_map()
496 cpumask_clear(cpu_data->shared_cpu_map); in acpi_get_psd_map()
497 cpumask_set_cpu(cpu, cpu_data->shared_cpu_map); in acpi_get_psd_map()
498 cpu_data->shared_type = CPUFREQ_SHARED_TYPE_NONE; in acpi_get_psd_map()
/drivers/hwmon/
Dcoretemp.c418 struct cpuinfo_x86 *c = &cpu_data(cpu); in chk_ucode_version()
464 struct cpuinfo_x86 *c = &cpu_data(cpu); in create_core_data()
603 struct cpuinfo_x86 *c = &cpu_data(cpu); in coretemp_cpu_online()
Dhwmon-vid.c277 struct cpuinfo_x86 *c = &cpu_data(0); in vid_which_vrm()
Dvia-cputemp.c113 struct cpuinfo_x86 *c = &cpu_data(pdev->id); in via_cputemp_probe()
Dfam15h_power.c145 cu = cpu_data(cpu).cpu_core_id; in do_read_registers_on_cu()
/drivers/char/hw_random/
Dvia-rng.c131 struct cpuinfo_x86 *c = &cpu_data(0); in via_rng_init()
/drivers/crypto/
Dpadlock-sha.c502 struct cpuinfo_x86 *c = &cpu_data(0); in padlock_init()
541 struct cpuinfo_x86 *c = &cpu_data(0); in padlock_fini()
/drivers/irqchip/
Dirq-mips-cpu.c103 settc(cpu_vpe_id(&cpu_data[cpu])); in mips_mt_send_ipi()
/drivers/video/fbdev/geode/
Dvideo_gx.c126 if (cpu_data(0).x86_stepping == 1) { in gx_set_dclk_frequency()
/drivers/thermal/intel/
Dx86_pkg_temp_thermal.c474 struct cpuinfo_x86 *c = &cpu_data(cpu); in pkg_thermal_cpu_online()
/drivers/virt/acrn/
Dhsm.c401 lapicid = cpu_data(cpu).apicid; in remove_cpu_store()

12