/drivers/cpuidle/governors/ |
D | teo.c | 207 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/ |
D | cppc_cpufreq.c | 72 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 …]
|
D | intel_pstate.c | 581 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 …]
|
D | qoriq-cpufreq.c | 28 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()
|
D | amd_freq_sensitivity.c | 37 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()
|
D | sc520_freq.c | 74 struct cpuinfo_x86 *c = &cpu_data(0); in sc520_freq_cpu_init()
|
D | elanfreq.c | 146 struct cpuinfo_x86 *c = &cpu_data(0); in elanfreq_cpu_init()
|
D | speedstep-centrino.c | 236 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()
|
D | acpi-cpufreq.c | 183 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()
|
D | p4-clockmod.c | 157 struct cpuinfo_x86 *c = &cpu_data(policy->cpu); in cpufreq_p4_cpu_init()
|
D | longrun.c | 166 struct cpuinfo_x86 *c = &cpu_data(0); in longrun_determine_freqs()
|
D | speedstep-lib.c | 256 struct cpuinfo_x86 *c = &cpu_data(0); in speedstep_detect_processor()
|
D | longhaul.c | 761 struct cpuinfo_x86 *c = &cpu_data(0); in longhaul_cpu_init() 919 struct cpuinfo_x86 *c = &cpu_data(0); in longhaul_init()
|
D | e_powersaver.c | 183 struct cpuinfo_x86 *c = &cpu_data(0); in eps_cpu_init()
|
/drivers/acpi/ |
D | cppc_acpi.c | 441 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/ |
D | coretemp.c | 418 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()
|
D | hwmon-vid.c | 277 struct cpuinfo_x86 *c = &cpu_data(0); in vid_which_vrm()
|
D | via-cputemp.c | 113 struct cpuinfo_x86 *c = &cpu_data(pdev->id); in via_cputemp_probe()
|
D | fam15h_power.c | 145 cu = cpu_data(cpu).cpu_core_id; in do_read_registers_on_cu()
|
/drivers/char/hw_random/ |
D | via-rng.c | 131 struct cpuinfo_x86 *c = &cpu_data(0); in via_rng_init()
|
/drivers/crypto/ |
D | padlock-sha.c | 502 struct cpuinfo_x86 *c = &cpu_data(0); in padlock_init() 541 struct cpuinfo_x86 *c = &cpu_data(0); in padlock_fini()
|
/drivers/irqchip/ |
D | irq-mips-cpu.c | 103 settc(cpu_vpe_id(&cpu_data[cpu])); in mips_mt_send_ipi()
|
/drivers/video/fbdev/geode/ |
D | video_gx.c | 126 if (cpu_data(0).x86_stepping == 1) { in gx_set_dclk_frequency()
|
/drivers/thermal/intel/ |
D | x86_pkg_temp_thermal.c | 474 struct cpuinfo_x86 *c = &cpu_data(cpu); in pkg_thermal_cpu_online()
|
/drivers/virt/acrn/ |
D | hsm.c | 401 lapicid = cpu_data(cpu).apicid; in remove_cpu_store()
|