/linux/include/acpi/ |
H A D | cppc_acpi.h | 142 extern int cppc_get_desired_perf(int cpunum, u64 *desired_perf); 143 extern int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf); 144 extern int cppc_get_highest_perf(int cpunum, u64 *highest_perf); 158 extern int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val); 159 extern int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val); 160 extern int cppc_get_epp_perf(int cpunum, u64 *epp_perf); 162 extern int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps); 168 static inline int cppc_get_desired_perf(int cpunum, u64 *desired_perf) in cppc_get_desired_perf() argument 172 static inline int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf) in cppc_get_nominal_perf() argument 176 static inline int cppc_get_highest_perf(int cpunum, u64 *highest_perf) in cppc_get_highest_perf() argument [all …]
|
/linux/drivers/acpi/ |
H A D | cppc_acpi.c | 973 int __weak cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) in cpc_read_ffh() argument 988 int __weak cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument 1178 static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf) in cppc_get_perf() argument 1180 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf() 1184 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_perf() 1191 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpunum); in cppc_get_perf() 1203 cpc_read(cpunum, reg, perf); in cppc_get_perf() 1212 cpc_read(cpunum, reg, perf); in cppc_get_perf() 1224 int cppc_get_desired_perf(int cpunum, u64 *desired_perf) in cppc_get_desired_perf() argument 1226 return cppc_get_perf(cpunum, DESIRED_PERF, desired_perf); in cppc_get_desired_perf() [all …]
|
/linux/drivers/platform/x86/intel/pmc/ |
H A D | cnp.c | 227 int cpunum = smp_processor_id(); in disable_c1_auto_demote() local 231 per_cpu(pkg_cst_config, cpunum) = val; in disable_c1_auto_demote() 235 pr_debug("%s: cpu:%d cst %llx\n", __func__, cpunum, val); in disable_c1_auto_demote() 240 int cpunum = smp_processor_id(); in restore_c1_auto_demote() local 242 wrmsrl(MSR_PKG_CST_CONFIG_CONTROL, per_cpu(pkg_cst_config, cpunum)); in restore_c1_auto_demote() 244 pr_debug("%s: cpu:%d cst %llx\n", __func__, cpunum, in restore_c1_auto_demote() 245 per_cpu(pkg_cst_config, cpunum)); in restore_c1_auto_demote()
|
/linux/arch/x86/kernel/acpi/ |
H A D | cppc.c | 46 int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) in cpc_read_ffh() argument 50 err = rdmsrl_safe_on_cpu(cpunum, reg->address, val); in cpc_read_ffh() 61 int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument 66 err = rdmsrl_safe_on_cpu(cpunum, reg->address, &rd_val); in cpc_write_ffh() 75 err = wrmsrl_safe_on_cpu(cpunum, reg->address, rd_val); in cpc_write_ffh()
|
/linux/arch/parisc/kernel/ |
H A D | smp.c | 272 smp_cpu_init(int cpunum) in smp_cpu_init() argument 275 init_per_cpu(cpunum); in smp_cpu_init() 282 if (cpu_online(cpunum)) { in smp_cpu_init() 285 printk(KERN_CRIT "CPU#%d already initialized!\n", cpunum); in smp_cpu_init() 289 notify_cpu_starting(cpunum); in smp_cpu_init() 291 set_cpu_online(cpunum, true); in smp_cpu_init()
|
H A D | processor.c | 68 init_percpu_prof(unsigned long cpunum) in init_percpu_prof() argument 327 int init_per_cpu(int cpunum) in init_per_cpu() argument 341 per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision; in init_per_cpu() 342 per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model; in init_per_cpu() 344 if (cpunum == 0) in init_per_cpu() 346 cpunum, coproc_cfg.revision, coproc_cfg.model); in init_per_cpu() 368 init_percpu_prof(cpunum); in init_per_cpu()
|
H A D | setup.c | 279 int ret, cpunum; in start_parisc() local 285 cpunum = smp_processor_id(); in start_parisc() 295 per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision; in start_parisc() 296 per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model; in start_parisc()
|
/linux/drivers/cpufreq/ |
H A D | intel_pstate.c | 960 static void hybrid_clear_cpu_capacity(unsigned int cpunum) in hybrid_clear_cpu_capacity() argument 962 arch_set_cpu_capacity(cpunum, 1, 1, 1, 1); in hybrid_clear_cpu_capacity() 977 int cpunum; in hybrid_set_capacity_of_cpus() local 979 for_each_online_cpu(cpunum) { in hybrid_set_capacity_of_cpus() 980 struct cpudata *cpu = all_cpu_data[cpunum]; in hybrid_set_capacity_of_cpus() 991 int cpunum; in hybrid_update_cpu_capacity_scaling() local 993 for_each_online_cpu(cpunum) { in hybrid_update_cpu_capacity_scaling() 994 struct cpudata *cpu = all_cpu_data[cpunum]; in hybrid_update_cpu_capacity_scaling() 1026 for_each_online_cpu(cpunum) in hybrid_update_cpu_capacity_scaling() 1027 hybrid_clear_cpu_capacity(cpunum); in hybrid_update_cpu_capacity_scaling() [all …]
|
/linux/kernel/ |
H A D | reboot.c | 1255 unsigned int cpunum; in cpu_store() local 1261 rc = kstrtouint(buf, 0, &cpunum); in cpu_store() 1266 if (cpunum >= num_possible_cpus()) in cpu_store() 1270 reboot_cpu = cpunum; in cpu_store()
|
/linux/drivers/base/ |
H A D | cpu.c | 157 int cpunum; in crash_notes_show() local 159 cpunum = cpu->dev.id; in crash_notes_show() 167 addr = per_cpu_ptr_to_phys(per_cpu_ptr(crash_notes, cpunum)); in crash_notes_show()
|
/linux/arch/x86/include/asm/ |
H A D | smp.h | 107 int common_cpu_up(unsigned int cpunum, struct task_struct *tidle);
|
/linux/include/linux/ |
H A D | smp.h | 152 extern int __cpu_up(unsigned int cpunum, struct task_struct *tidle);
|
/linux/arch/arm64/kernel/ |
H A D | topology.c | 344 int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument
|