Home
last modified time | relevance | path

Searched refs:cpuid (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/linux/arch/riscv/kernel/
A Dsmpboot.c51 int cpuid; in smp_prepare_cpus() local
64 if (cpuid == curr_cpuid) in smp_prepare_cpus()
67 ret = cpu_ops[cpuid]->cpu_prepare(cpuid); in smp_prepare_cpus()
81 int cpuid = 1; in setup_smp() local
96 if (cpuid >= NR_CPUS) { in setup_smp()
98 cpuid, hart); in setup_smp()
104 cpuid++; in setup_smp()
109 if (cpuid > nr_cpu_ids) in setup_smp()
111 cpuid, nr_cpu_ids); in setup_smp()
113 for (cpuid = 1; cpuid < nr_cpu_ids; cpuid++) { in setup_smp()
[all …]
A Dcpu_ops_sbi.c56 static int sbi_cpu_start(unsigned int cpuid, struct task_struct *tidle) in sbi_cpu_start() argument
60 int hartid = cpuid_to_hartid_map(cpuid); in sbi_cpu_start()
62 cpu_update_secondary_bootdata(cpuid, tidle); in sbi_cpu_start()
68 static int sbi_cpu_prepare(unsigned int cpuid) in sbi_cpu_prepare() argument
71 pr_err("cpu start method not defined for CPU [%d]\n", cpuid); in sbi_cpu_prepare()
78 static int sbi_cpu_disable(unsigned int cpuid) in sbi_cpu_disable() argument
93 static int sbi_cpu_is_stopped(unsigned int cpuid) in sbi_cpu_is_stopped() argument
96 int hartid = cpuid_to_hartid_map(cpuid); in sbi_cpu_is_stopped()
A Dcpu_ops.c24 void cpu_update_secondary_bootdata(unsigned int cpuid, in cpu_update_secondary_bootdata() argument
27 int hartid = cpuid_to_hartid_map(cpuid); in cpu_update_secondary_bootdata()
36 void __init cpu_set_ops(int cpuid) in cpu_set_ops() argument
40 if (!cpuid) in cpu_set_ops()
42 cpu_ops[cpuid] = &cpu_ops_sbi; in cpu_set_ops()
45 cpu_ops[cpuid] = &cpu_ops_spinwait; in cpu_set_ops()
A Dcpu_ops_spinwait.c15 static int spinwait_cpu_prepare(unsigned int cpuid) in spinwait_cpu_prepare() argument
18 pr_err("cpu start method not defined for CPU [%d]\n", cpuid); in spinwait_cpu_prepare()
24 static int spinwait_cpu_start(unsigned int cpuid, struct task_struct *tidle) in spinwait_cpu_start() argument
34 cpu_update_secondary_bootdata(cpuid, tidle); in spinwait_cpu_start()
/linux/arch/sparc/kernel/
A Dprom_64.c445 if (cpuid < 0) { in of_iterate_over_cpus()
449 if (cpuid < 0) { in of_iterate_over_cpus()
455 if (cpuid >= NR_CPUS) { in of_iterate_over_cpus()
458 cpuid, NR_CPUS); in of_iterate_over_cpus()
462 ret = func(dp, cpuid, arg); in of_iterate_over_cpus()
471 if (id == cpuid) in check_cpu_node()
485 set_cpu_present(cpuid, true); in record_one_cpu()
486 set_cpu_possible(cpuid, true); in record_one_cpu()
527 cpuid = 0; in fill_in_one_cpu()
530 cpu_data(cpuid).clock_tick = in fill_in_one_cpu()
[all …]
A Dsun4d_smp.c47 cpuid &= 0x1e; in show_leds()
49 "r" ((cpu_leds[cpuid] << 4) | cpu_leds[cpuid+1]), in show_leds()
56 int cpuid = hard_smp_processor_id(); in sun4d_cpu_pre_starting() local
59 cpu_leds[cpuid] = 0x6; in sun4d_cpu_pre_starting()
60 show_leds(cpuid); in sun4d_cpu_pre_starting()
69 int cpuid; in sun4d_cpu_pre_online() local
71 cpuid = hard_smp_processor_id(); in sun4d_cpu_pre_online()
85 while (current_set[cpuid]->cpu != cpuid) in sun4d_cpu_pre_online()
90 : : "r" (&current_set[cpuid]) in sun4d_cpu_pre_online()
93 cpu_leds[cpuid] = 0x9; in sun4d_cpu_pre_online()
[all …]
A Dsmp_32.c184 int i, cpuid, extra; in smp_prepare_cpus() local
190 if (cpuid >= NR_CPUS) in smp_prepare_cpus()
244 int cpuid = hard_smp_processor_id(); in smp_prepare_boot_cpu() local
246 if (cpuid >= NR_CPUS) { in smp_prepare_boot_cpu()
250 if (cpuid != 0) in smp_prepare_boot_cpu()
253 current_thread_info()->cpu = cpuid; in smp_prepare_boot_cpu()
254 set_cpu_online(cpuid, true); in smp_prepare_boot_cpu()
255 set_cpu_possible(cpuid, true); in smp_prepare_boot_cpu()
316 unsigned int cpuid = hard_smp_processor_id(); in arch_cpu_pre_online() local
318 register_percpu_ce(cpuid); in arch_cpu_pre_online()
[all …]
A Dsun4d_irq.c33 unsigned int cpuid; /* target cpu */ member
195 int cpuid = handler_data->cpuid; in sun4d_mask_irq() local
201 cc_set_imsk_other(cpuid, cc_get_imsk_other(cpuid) | (1 << real_irq)); in sun4d_mask_irq()
213 int cpuid = handler_data->cpuid; in sun4d_unmask_irq() local
220 cc_set_imsk_other(cpuid, cc_get_imsk_other(cpuid) & ~(1 << real_irq)); in sun4d_unmask_irq()
254 int cpuid = cpu_logical_map(1); in sun4d_distribute_irqs() local
256 if (cpuid == -1) in sun4d_distribute_irqs()
257 cpuid = cpu_logical_map(0); in sun4d_distribute_irqs()
261 board_to_cpu[board] = cpuid; in sun4d_distribute_irqs()
262 set_sbi_tid(devid, cpuid << 3); in sun4d_distribute_irqs()
[all …]
A Dirq_64.c329 tid = cpuid << IMAP_TID_SHIFT; in sun4u_compute_tid()
332 unsigned int a = cpuid & 0x1f; in sun4u_compute_tid()
341 tid = cpuid << IMAP_TID_SHIFT; in sun4u_compute_tid()
353 int cpuid; in irq_choose_cpu() local
357 cpuid = map_to_cpu(irq); in irq_choose_cpu()
365 return cpuid; in irq_choose_cpu()
378 unsigned long cpuid, imap, val; in sun4u_irq_enable() local
381 cpuid = irq_choose_cpu(data->irq, in sun4u_irq_enable()
403 unsigned long cpuid, imap, val; in sun4u_set_affinity() local
514 unsigned long cpuid; in sun4v_virq_enable() local
[all …]
/linux/arch/parisc/kernel/
A Dtopology.c30 static void update_siblings_masks(unsigned int cpuid) in update_siblings_masks() argument
42 cpumask_set_cpu(cpuid, &cpu_topo->core_sibling); in update_siblings_masks()
43 if (cpu != cpuid) in update_siblings_masks()
50 if (cpu != cpuid) in update_siblings_masks()
63 void __init store_cpu_topology(unsigned int cpuid) in store_cpu_topology() argument
78 p = &per_cpu(cpu_data, cpuid); in store_cpu_topology()
82 if (cpu == cpuid) /* ignore current cpu */ in store_cpu_topology()
102 update_siblings_masks(cpuid); in store_cpu_topology()
105 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology()
106 cpu_topology[cpuid].core_id, in store_cpu_topology()
[all …]
A Dprocessor.c82 unsigned long cpuid; in processor_probe() local
153 cpuid = cpu_info.cpu_num; in processor_probe()
159 p = &per_cpu(cpu_data, cpuid); in processor_probe()
163 if (cpuid) in processor_probe()
168 p->cpuid = cpuid; /* save CPU id */ in processor_probe()
173 store_cpu_topology(cpuid); in processor_probe()
180 init_percpu_prof(cpuid); in processor_probe()
191 if (cpuid) { in processor_probe()
212 if (cpuid) { in processor_probe()
214 add_cpu(cpuid); in processor_probe()
[all …]
A Dsmp.c89 ipi_init(int cpuid) in ipi_init() argument
93 if(cpu_online(cpuid) ) in ipi_init()
337 int smp_boot_one_cpu(int cpuid, struct task_struct *idle) in smp_boot_one_cpu() argument
339 const struct cpuinfo_parisc *p = &per_cpu(cpu_data, cpuid); in smp_boot_one_cpu()
345 cpu_now_booting = cpuid; in smp_boot_one_cpu()
354 printk(KERN_INFO "Releasing cpu %d now, hpa=%lx\n", cpuid, p->hpa); in smp_boot_one_cpu()
374 if(cpu_online(cpuid)) { in smp_boot_one_cpu()
383 printk(KERN_CRIT "SMP: CPU:%d is stuck.\n", cpuid); in smp_boot_one_cpu()
389 cpuid, timeout * 100); in smp_boot_one_cpu()
395 int bootstrap_processor = per_cpu(cpu_data, 0).cpuid; in smp_prepare_boot_cpu()
/linux/drivers/soc/tegra/
A Dflowctrl.c51 u32 flowctrl_read_cpu_csr(unsigned int cpuid) in flowctrl_read_cpu_csr() argument
53 u8 offset = flowctrl_offset_cpu_csr[cpuid]; in flowctrl_read_cpu_csr()
72 void flowctrl_cpu_suspend_enter(unsigned int cpuid) in flowctrl_cpu_suspend_enter() argument
77 reg = flowctrl_read_cpu_csr(cpuid); in flowctrl_cpu_suspend_enter()
85 reg |= TEGRA20_FLOW_CTRL_CSR_WFE_CPU0 << cpuid; in flowctrl_cpu_suspend_enter()
106 reg |= TEGRA20_FLOW_CTRL_CSR_WFE_CPU0 << cpuid; in flowctrl_cpu_suspend_enter()
109 reg |= TEGRA30_FLOW_CTRL_CSR_WFI_CPU0 << cpuid; in flowctrl_cpu_suspend_enter()
116 flowctrl_write_cpu_csr(cpuid, reg); in flowctrl_cpu_suspend_enter()
119 if (i == cpuid) in flowctrl_cpu_suspend_enter()
133 reg = flowctrl_read_cpu_csr(cpuid); in flowctrl_cpu_suspend_exit()
[all …]
/linux/tools/testing/selftests/kvm/x86_64/
A Dget_cpuid_test.c39 cpuid(&eax, &ebx, &ecx, &edx); in test_guest_cpuids()
53 cpuid(&eax, &ebx, &ecx, &edx); in test_cpuid_40000000()
88 for (i = 0; i < cpuid->nent; i++) { in check_cpuid()
90 cpuid->entries[i].index == entrie->index) { in check_cpuid()
95 cpuid->entries[i].ebx == entrie->ebx && in check_cpuid()
96 cpuid->entries[i].ecx == entrie->ecx && in check_cpuid()
97 cpuid->entries[i].edx == entrie->edx, in check_cpuid()
100 cpuid->entries[i].eax, cpuid->entries[i].ebx, in check_cpuid()
101 cpuid->entries[i].ecx, cpuid->entries[i].edx, in check_cpuid()
147 int size = sizeof(*cpuid) + cpuid->nent * sizeof(cpuid->entries[0]); in vcpu_alloc_cpuid()
[all …]
/linux/arch/alpha/kernel/
A Dsmp.c80 smp_store_cpu_info(int cpuid) in smp_store_cpu_info() argument
85 cpu_data[cpuid].asn_lock = 0; in smp_store_cpu_info()
99 wait_boot_cpu_to_stop(int cpuid) in wait_boot_cpu_to_stop() argument
122 if (cpu_online(cpuid)) { in smp_callin()
126 set_cpu_online(cpuid, true); in smp_callin()
138 smp_setup_percpu_timer(cpuid); in smp_callin()
150 notify_cpu_starting(cpuid); in smp_callin()
157 wait_boot_cpu_to_stop(cpuid); in smp_callin()
161 smp_store_cpu_info(cpuid); in smp_callin()
209 cpumask = (1UL << cpuid); in send_secondary_console_msg()
[all …]
A Dsys_marvel.c405 int cpuid = hard_smp_processor_id(); in marvel_smp_callin() local
406 struct io7 *io7 = marvel_find_io7(cpuid); in marvel_smp_callin()
418 io7_redirect_irq(io7, &io7->csrs->HLT_CTL.csr, cpuid); in marvel_smp_callin()
419 io7_redirect_irq(io7, &io7->csrs->HPI_CTL.csr, cpuid); in marvel_smp_callin()
420 io7_redirect_irq(io7, &io7->csrs->CRD_CTL.csr, cpuid); in marvel_smp_callin()
421 io7_redirect_irq(io7, &io7->csrs->STV_CTL.csr, cpuid); in marvel_smp_callin()
422 io7_redirect_irq(io7, &io7->csrs->HEI_CTL.csr, cpuid); in marvel_smp_callin()
426 io7_redirect_one_lsi(io7, i, cpuid); in marvel_smp_callin()
428 io7_redirect_one_lsi(io7, 0x74, cpuid); in marvel_smp_callin()
429 io7_redirect_one_lsi(io7, 0x75, cpuid); in marvel_smp_callin()
[all …]
/linux/include/soc/tegra/
A Dflowctrl.h44 u32 flowctrl_read_cpu_csr(unsigned int cpuid);
45 void flowctrl_write_cpu_csr(unsigned int cpuid, u32 value);
46 void flowctrl_write_cpu_halt(unsigned int cpuid, u32 value);
48 void flowctrl_cpu_suspend_enter(unsigned int cpuid);
49 void flowctrl_cpu_suspend_exit(unsigned int cpuid);
51 static inline u32 flowctrl_read_cpu_csr(unsigned int cpuid) in flowctrl_read_cpu_csr() argument
56 static inline void flowctrl_write_cpu_csr(unsigned int cpuid, u32 value) in flowctrl_write_cpu_csr() argument
60 static inline void flowctrl_write_cpu_halt(unsigned int cpuid, u32 value) {} in flowctrl_write_cpu_halt() argument
62 static inline void flowctrl_cpu_suspend_enter(unsigned int cpuid) in flowctrl_cpu_suspend_enter() argument
66 static inline void flowctrl_cpu_suspend_exit(unsigned int cpuid) in flowctrl_cpu_suspend_exit() argument
/linux/arch/x86/kernel/
A Dverify_cpu.S40 pushfl # standard way to check for cpuid
49 jz .Lverify_cpu_no_longmode # cpu has no cpuid
52 movl $0x0,%eax # See if cpuid 1 is implemented
53 cpuid
55 jb .Lverify_cpu_no_longmode # no cpuid 1
78 cpuid
101 cpuid
107 cpuid
109 jb .Lverify_cpu_no_longmode # no extended cpuid
112 cpuid
[all …]
/linux/arch/arm/kernel/
A Dtopology.c177 static inline void update_cpu_capacity(unsigned int cpuid) {} in update_cpu_capacity() argument
185 void store_cpu_topology(unsigned int cpuid) in store_cpu_topology() argument
187 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology()
224 update_cpu_capacity(cpuid); in store_cpu_topology()
227 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology()
228 cpu_topology[cpuid].core_id, in store_cpu_topology()
229 cpu_topology[cpuid].package_id, mpidr); in store_cpu_topology()
232 update_siblings_masks(cpuid); in store_cpu_topology()
/linux/drivers/firmware/psci/
A Dpsci.c211 err = invoke_psci_fn(fn, cpuid, entry_point, 0); in __psci_cpu_on()
225 static int __psci_migrate(u32 fn, unsigned long cpuid) in __psci_migrate() argument
229 err = invoke_psci_fn(fn, cpuid, 0, 0); in __psci_migrate()
233 static int psci_0_1_migrate(unsigned long cpuid) in psci_0_1_migrate() argument
238 static int psci_0_2_migrate(unsigned long cpuid) in psci_0_2_migrate() argument
240 return __psci_migrate(PSCI_FN_NATIVE(0_2, MIGRATE), cpuid); in psci_0_2_migrate()
415 unsigned long cpuid; in psci_init_migrate() local
436 cpuid = psci_migrate_info_up_cpu(); in psci_init_migrate()
437 if (cpuid & ~MPIDR_HWID_BITMASK) { in psci_init_migrate()
439 cpuid); in psci_init_migrate()
[all …]
/linux/tools/testing/selftests/kvm/lib/x86_64/
A Dprocessor.c702 if (!cpuid) { in allocate_kvm_cpuid2()
709 return cpuid; in allocate_kvm_cpuid2()
729 if (cpuid) in kvm_get_supported_cpuid()
730 return cpuid; in kvm_get_supported_cpuid()
740 return cpuid; in kvm_get_supported_cpuid()
800 for (cpuid->nent = 1; cpuid->nent <= max_ent; cpuid->nent++) { in vcpu_get_cpuid()
813 return cpuid; in vcpu_get_cpuid()
1375 if (cpuid) in kvm_get_supported_hv_cpuid()
1376 return cpuid; in kvm_get_supported_hv_cpuid()
1386 return cpuid; in kvm_get_supported_hv_cpuid()
[all …]
/linux/arch/ia64/kernel/
A Dsmpboot.c171 int cpuid; in fix_b0_for_bsp() local
174 cpuid = smp_processor_id(); in fix_b0_for_bsp()
179 if (!(fix_bsp_b0 && cpuid)) in fix_b0_for_bsp()
354 int cpuid, phys_id, itc_master; in smp_callin() local
359 cpuid = smp_processor_id(); in smp_callin()
363 if (cpu_online(cpuid)) { in smp_callin()
365 phys_id, cpuid); in smp_callin()
379 __setup_vector_irq(cpuid); in smp_callin()
380 notify_cpu_starting(cpuid); in smp_callin()
381 set_cpu_online(cpuid, true); in smp_callin()
[all …]
/linux/drivers/clocksource/
A Dtimer-riscv.c104 int cpuid, hartid, error; in riscv_timer_init_dt() local
115 cpuid = riscv_hartid_to_cpuid(hartid); in riscv_timer_init_dt()
116 if (cpuid < 0) { in riscv_timer_init_dt()
118 return cpuid; in riscv_timer_init_dt()
121 if (cpuid != smp_processor_id()) in riscv_timer_init_dt()
144 __func__, cpuid, hartid); in riscv_timer_init_dt()
148 error, cpuid); in riscv_timer_init_dt()
/linux/arch/x86/kernel/cpu/
A Dtransmeta.c37 cpuid(0x80860001, &dummy, &cpu_rev, &cpu_freq, &cpu_flags); in init_transmeta()
48 cpuid(0x80860002, &new_cpu_rev, &cms_rev1, &cms_rev2, &dummy); in init_transmeta()
61 cpuid(0x80860003, in init_transmeta()
66 cpuid(0x80860004, in init_transmeta()
71 cpuid(0x80860005, in init_transmeta()
76 cpuid(0x80860006, in init_transmeta()
/linux/lib/zstd/common/
A Dcpu.h82 ZSTD_cpuid_t cpuid; in ZSTD_cpuid() local
83 cpuid.f1c = f1c; in ZSTD_cpuid()
84 cpuid.f1d = f1d; in ZSTD_cpuid()
85 cpuid.f7b = f7b; in ZSTD_cpuid()
86 cpuid.f7c = f7c; in ZSTD_cpuid()
87 return cpuid; in ZSTD_cpuid()
92 MEM_STATIC int ZSTD_cpuid_##name(ZSTD_cpuid_t const cpuid) { \
93 return ((cpuid.r) & (1U << bit)) != 0; \

Completed in 37 milliseconds

12345678910>>...12