Home
last modified time | relevance | path

Searched refs:cpunum (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/include/acpi/
Dcppc_acpi.h137 extern int cppc_get_desired_perf(int cpunum, u64 *desired_perf);
138 extern int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf);
150 extern int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val);
151 extern int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val);
153 static inline int cppc_get_desired_perf(int cpunum, u64 *desired_perf) in cppc_get_desired_perf() argument
157 static inline int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf) in cppc_get_nominal_perf() argument
197 static inline int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) in cpc_read_ffh() argument
201 static inline int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument
/linux-6.1.9/drivers/acpi/
Dcppc_acpi.c953 int __weak cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) in cpc_read_ffh() argument
968 int __weak cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument
1092 static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf) in cppc_get_perf() argument
1094 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf()
1098 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_perf()
1105 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpunum); in cppc_get_perf()
1117 cpc_read(cpunum, reg, perf); in cppc_get_perf()
1126 cpc_read(cpunum, reg, perf); in cppc_get_perf()
1138 int cppc_get_desired_perf(int cpunum, u64 *desired_perf) in cppc_get_desired_perf() argument
1140 return cppc_get_perf(cpunum, DESIRED_PERF, desired_perf); in cppc_get_desired_perf()
[all …]
/linux-6.1.9/arch/x86/kernel/acpi/
Dcppc.c35 int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) in cpc_read_ffh() argument
39 err = rdmsrl_safe_on_cpu(cpunum, reg->address, val); in cpc_read_ffh()
50 int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument
55 err = rdmsrl_safe_on_cpu(cpunum, reg->address, &rd_val); in cpc_write_ffh()
64 err = wrmsrl_safe_on_cpu(cpunum, reg->address, rd_val); in cpc_write_ffh()
/linux-6.1.9/arch/parisc/kernel/
Dprocessor.c67 init_percpu_prof(unsigned long cpunum) in init_percpu_prof() argument
322 int init_per_cpu(int cpunum) in init_per_cpu() argument
336 per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision; in init_per_cpu()
337 per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model; in init_per_cpu()
339 if (cpunum == 0) in init_per_cpu()
341 cpunum, coproc_cfg.revision, coproc_cfg.model); in init_per_cpu()
363 init_percpu_prof(cpunum); in init_per_cpu()
Dsmp.c272 smp_cpu_init(int cpunum) in smp_cpu_init() argument
278 init_per_cpu(cpunum); in smp_cpu_init()
285 if (cpu_online(cpunum)) { in smp_cpu_init()
288 printk(KERN_CRIT "CPU#%d already initialized!\n", cpunum); in smp_cpu_init()
292 notify_cpu_starting(cpunum); in smp_cpu_init()
294 set_cpu_online(cpunum, true); in smp_cpu_init()
Dsetup.c398 int ret, cpunum; in start_parisc() local
404 cpunum = smp_processor_id(); in start_parisc()
414 per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision; in start_parisc()
415 per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model; in start_parisc()
/linux-6.1.9/tools/testing/selftests/netfilter/
Dnft_trans_stress.sh80 lscpu | grep ^CPU\(s\): | ( read cpu cpunum ;
81 cpunum=$((cpunum-1))
82 for i in $(seq 0 $cpunum);do
/linux-6.1.9/arch/x86/include/asm/
Dsmp.h123 int common_cpu_up(unsigned int cpunum, struct task_struct *tidle);
124 int native_cpu_up(unsigned int cpunum, struct task_struct *tidle);
/linux-6.1.9/arch/ia64/kernel/
Dsetup.c653 # define cpunum c->cpu in show_cpuinfo() macro
656 # define cpunum 0 in show_cpuinfo()
693 proc_freq = cpufreq_quick_get(cpunum); in show_cpuinfo()
712 cpunum, c->vendor, c->family, c->model, in show_cpuinfo()
720 cpumask_weight(&cpu_core_map[cpunum])); in show_cpuinfo()
/linux-6.1.9/kernel/
Dreboot.c1225 unsigned int cpunum; in cpu_store() local
1231 rc = kstrtouint(buf, 0, &cpunum); in cpu_store()
1236 if (cpunum >= num_possible_cpus()) in cpu_store()
1240 reboot_cpu = cpunum; in cpu_store()
/linux-6.1.9/drivers/base/
Dcpu.c148 int cpunum; in crash_notes_show() local
150 cpunum = cpu->dev.id; in crash_notes_show()
158 addr = per_cpu_ptr_to_phys(per_cpu_ptr(crash_notes, cpunum)); in crash_notes_show()
/linux-6.1.9/include/linux/
Dsmp.h139 extern int __cpu_up(unsigned int cpunum, struct task_struct *tidle);
/linux-6.1.9/arch/arm64/kernel/
Dtopology.c344 int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument
/linux-6.1.9/kernel/debug/kdb/
Dkdb_main.c2246 unsigned long cpunum; in kdb_cpu() local
2257 diag = kdbgetularg(argv[1], &cpunum); in kdb_cpu()
2264 if ((cpunum >= CONFIG_NR_CPUS) || !kgdb_info[cpunum].enter_kgdb) in kdb_cpu()
2267 dbg_switch_cpu = cpunum; in kdb_cpu()
/linux-6.1.9/drivers/cpufreq/
Dintel_pstate.c2405 static int intel_pstate_init_cpu(unsigned int cpunum) in intel_pstate_init_cpu() argument
2409 cpu = all_cpu_data[cpunum]; in intel_pstate_init_cpu()
2416 WRITE_ONCE(all_cpu_data[cpunum], cpu); in intel_pstate_init_cpu()
2418 cpu->cpu = cpunum; in intel_pstate_init_cpu()
2445 pr_debug("controlling: cpu %d\n", cpunum); in intel_pstate_init_cpu()
2919 static void intel_cpufreq_adjust_perf(unsigned int cpunum, in intel_cpufreq_adjust_perf() argument
2924 struct cpudata *cpu = all_cpu_data[cpunum]; in intel_cpufreq_adjust_perf()