/xen-4.10.0-shim-comet/tools/debugger/kdd/ |
A D | kdd-xen.c | 175 if ((void *) cpu + sizeof (*cpu) <= g->hvm_buf + g->hvm_sz) in get_cpu() 333 if (!cpu) in kdd_get_regs() 351 if (!cpu) in kdd_set_regs() 367 c->cr0 = cpu->cr0; in kdd_get_ctrl_x86_32() 368 c->cr2 = cpu->cr2; in kdd_get_ctrl_x86_32() 369 c->cr3 = cpu->cr3; in kdd_get_ctrl_x86_32() 370 c->cr4 = cpu->cr4; in kdd_get_ctrl_x86_32() 371 c->dr0 = cpu->dr0; in kdd_get_ctrl_x86_32() 415 if (!cpu) in kdd_get_ctrl() 435 if (!cpu) in kdd_wrmsr() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | smpboot.c | 237 cpumask_set_cpu(cpu, socket_cpumask[cpu_to_socket(cpu)]); in set_cpu_sibling_map() 255 cpumask_set_cpu(cpu, per_cpu(cpu_sibling_mask, cpu)); in set_cpu_sibling_map() 290 else if ( (i != cpu) && !c[cpu].booted_cores ) in set_cpu_sibling_map() 502 int cpu; in alloc_cpu_id() local 506 return (cpu < nr_cpu_ids) ? cpu : -ENODEV; in alloc_cpu_id() 638 cpu_uninit(cpu); in cpu_exit_clear() 743 stub_page = alloc_stub_page(cpu, &per_cpu(stubs.mfn, cpu)); in cpu_smpboot_alloc() 746 per_cpu(stubs.addr, cpu) = stub_page + STUB_BUF_CPU_OFFS(cpu); in cpu_smpboot_alloc() 878 cpumask_clear_cpu(cpu, socket_cpumask[cpu_to_socket(cpu)]); in remove_siblinginfo() 939 int cpu = -1; in cpu_add() local [all …]
|
A D | percpu.c | 20 unsigned int cpu; in percpu_init_areas() local 22 for ( cpu = 1; cpu < NR_CPUS; cpu++ ) in percpu_init_areas() 26 static int init_percpu_area(unsigned int cpu) in init_percpu_area() argument 37 __per_cpu_offset[cpu] = p - __per_cpu_start; in init_percpu_area() 43 unsigned int cpu; member 51 unsigned int cpu = info->cpu; in _free_percpu_area() local 58 static void free_percpu_area(unsigned int cpu) in free_percpu_area() argument 62 info->cpu = cpu; in free_percpu_area() 69 unsigned int cpu = (unsigned long)hcpu; in cpu_percpu_callback() local 75 rc = init_percpu_area(cpu); in cpu_percpu_callback() [all …]
|
A D | microcode.c | 194 unsigned int cpu; member 211 __microcode_fini_cpu(cpu); in microcode_fini_cpu() 215 int microcode_resume_cpu(unsigned int cpu) in microcode_resume_cpu() argument 230 __microcode_fini_cpu(cpu); in microcode_resume_cpu() 248 __microcode_fini_cpu(cpu); in microcode_resume_cpu() 263 __microcode_fini_cpu(cpu); in microcode_resume_cpu() 272 unsigned int cpu = smp_processor_id(); in microcode_update_cpu() local 281 __microcode_fini_cpu(cpu); in microcode_update_cpu() 299 info->cpu = cpumask_next(info->cpu, &cpu_online_map); in do_microcode_update() 300 if ( info->cpu < nr_cpu_ids ) in do_microcode_update() [all …]
|
/xen-4.10.0-shim-comet/xen/include/xen/ |
A D | cpumask.h | 98 return cpu; in cpumask_check() 255 cpu = cpumask_next(cpu, srcp)) in cpumask_last() 256 pcpu = cpu; in cpumask_last() 292 return cpu; in cpumask_any() 385 (cpu) = cpumask_next(cpu, mask)) 388 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)(mask)) 455 #define cpu_online(cpu) cpumask_test_cpu(cpu, &cpu_online_map) argument 457 #define cpu_present(cpu) cpumask_test_cpu(cpu, &cpu_present_map) argument 462 #define cpu_online(cpu) ((cpu) == 0) argument 463 #define cpu_possible(cpu) ((cpu) == 0) argument [all …]
|
A D | irq_cpustat.h | 22 #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member) argument 25 #define softirq_pending(cpu) __IRQ_STAT((cpu), __softirq_pending) argument 26 #define local_irq_count(cpu) __IRQ_STAT((cpu), __local_irq_count) argument 27 #define nmi_count(cpu) __IRQ_STAT((cpu), __nmi_count) argument 28 #define mwait_wakeup(cpu) __IRQ_STAT((cpu), __mwait_wakeup) argument
|
A D | sched-if.h | 61 #define sched_lock(kind, param, cpu, irq, arg...) \ argument 82 #define sched_unlock(kind, param, cpu, irq, arg...) \ argument 86 ASSERT(lock == per_cpu(schedule_data, cpu).schedule_lock); \ 91 sched_lock(pcpu, unsigned int cpu, cpu, ) 93 sched_lock(pcpu, unsigned int cpu, cpu, _irq) in sched_lock() argument 95 sched_unlock(pcpu, unsigned int cpu, cpu, ) in sched_lock() 97 sched_unlock(pcpu, unsigned int cpu, cpu, _irq) in sched_lock() 103 sched_lock(pcpu, unsigned int cpu, cpu, _irqsave, *flags) in sched_lock() 106 sched_unlock(pcpu, unsigned int cpu, cpu, _irqrestore, flags) in sched_lock() 113 static inline spinlock_t *pcpu_schedule_trylock(unsigned int cpu) in sched_lock() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm64/ |
A D | smpboot.c | 19 static int __init smp_spin_table_cpu_up(int cpu) in smp_spin_table_cpu_up() argument 23 if (!cpu_release_addr[cpu]) in smp_spin_table_cpu_up() 25 printk("CPU%d: No release addr\n", cpu); in smp_spin_table_cpu_up() 56 static int __init smp_psci_init(int cpu) in smp_psci_init() argument 86 smp_spin_table_init(cpu, dn); in dt_arch_cpu_init() 88 return smp_psci_init(cpu); in dt_arch_cpu_init() 101 return dt_arch_cpu_init(cpu, dn); in arch_cpu_init() 104 return smp_psci_init(cpu); in arch_cpu_init() 107 int __init arch_cpu_up(int cpu) in arch_cpu_up() argument 109 if ( !smp_enable_ops[cpu].prepare_cpu ) in arch_cpu_up() [all …]
|
/xen-4.10.0-shim-comet/xen/common/ |
A D | core_parking.c | 59 unsigned int cpu = -1; in core_parking_performance() local 71 for_each_cpu(cpu, &cpu_online_map) in core_parking_performance() 73 if ( cpu == 0 ) in core_parking_performance() 112 return cpu; in core_parking_performance() 117 unsigned int cpu = -1; in core_parking_power() local 129 for_each_cpu(cpu, &cpu_online_map) in core_parking_power() 131 if ( cpu == 0 ) in core_parking_power() 170 return cpu; in core_parking_power() 176 unsigned int cpu; in core_parking_helper() local 185 ret = cpu_down(cpu); in core_parking_helper() [all …]
|
A D | softirq.c | 30 unsigned int i, cpu; in __do_softirq() local 39 cpu = smp_processor_id(); in __do_softirq() 41 if ( rcu_pending(cpu) ) in __do_softirq() 42 rcu_check_callbacks(cpu); in __do_softirq() 45 || cpu_is_offline(cpu) ) in __do_softirq() 86 for_each_cpu(cpu, mask) in cpumask_raise_softirq() 88 cpu != this_cpu && in cpumask_raise_softirq() 101 || (cpu == this_cpu) in cpu_raise_softirq() 106 smp_send_event_check_cpu(cpu); in cpu_raise_softirq() 122 for_each_cpu ( cpu, mask ) in cpu_raise_softirq_batch_finish() [all …]
|
A D | cpupool.c | 296 int cpu = cpupool_moving_cpu; in cpupool_unassign_cpu_helper() local 379 if ( !cpumask_test_cpu(cpu, c->cpu_valid) && (cpu != cpupool_moving_cpu) ) in cpupool_unassign_cpu() 401 cpupool_moving_cpu = cpu; in cpupool_unassign_cpu() 408 if ( work_cpu == cpu ) in cpupool_unassign_cpu() 411 if ( work_cpu == cpu ) in cpupool_unassign_cpu() 642 unsigned cpu; in cpupool_do_sysctl() local 644 cpu = op->cpu; in cpupool_do_sysctl() 651 if ( cpu >= nr_cpu_ids ) in cpupool_do_sysctl() 670 unsigned cpu; in cpupool_do_sysctl() local 676 cpu = op->cpu; in cpupool_do_sysctl() [all …]
|
A D | tasklet.c | 35 unsigned int cpu = t->scheduled_on; in tasklet_enqueue() local 62 t->scheduled_on = cpu; in tasklet_schedule_on_cpu() 109 unsigned int cpu = smp_processor_id(); in do_tasklet() local 122 ASSERT(tasklet_work_to_do(cpu)); in do_tasklet() 126 do_tasklet_work(cpu, list); in do_tasklet() 140 unsigned int cpu = smp_processor_id(); in tasklet_softirq_action() local 145 do_tasklet_work(cpu, list); in tasklet_softirq_action() 188 BUG_ON(t->scheduled_on != cpu); in migrate_tasklets_from_cpu() 217 unsigned int cpu = (unsigned long)hcpu; in cpu_callback() local 227 migrate_tasklets_from_cpu(cpu, &per_cpu(tasklet_list, cpu)); in cpu_callback() [all …]
|
A D | cpu.c | 79 int cpu_down(unsigned int cpu) in cpu_down() argument 88 if ( (cpu >= nr_cpu_ids) || (cpu == 0) || !cpu_online(cpu) ) in cpu_down() 104 __cpu_die(cpu); in cpu_down() 105 BUG_ON(cpu_online(cpu)); in cpu_down() 121 int cpu_up(unsigned int cpu) in cpu_up() argument 130 if ( (cpu >= nr_cpu_ids) || cpu_online(cpu) || !cpu_present(cpu) ) in cpu_up() 143 err = __cpu_up(cpu); in cpu_up() 174 int cpu, error = 0; in disable_nonboot_cpus() local 182 for_each_online_cpu ( cpu ) in disable_nonboot_cpus() 184 if ( cpu == 0 ) in disable_nonboot_cpus() [all …]
|
A D | sched_null.c | 132 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), in vcpu_check_affinity() 135 return cpumask_test_cpu(cpu, cpumask_scratch_cpu(cpu)); in vcpu_check_affinity() 187 init_pdata(prv, cpu); in null_init_pdata() 307 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), cpus); in pick_cpu() 317 && cpumask_test_cpu(cpu, cpumask_scratch_cpu(cpu))) ) in pick_cpu() 324 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), in pick_cpu() 366 v->processor = cpu; in vcpu_assign() 379 d.cpu = cpu; in vcpu_assign() 400 d.cpu = cpu; in vcpu_deassign() 442 unsigned int cpu; in null_vcpu_insert() local [all …]
|
A D | sched_credit.c | 466 __trace_var(TRC_CSCHED_TICKLE, 1, sizeof(cpu), &cpu); in __runq_tickle() 571 prv->master = cpu; in init_pdata() 579 prv->balance_bias[cpu_to_node(cpu)] = cpu; in init_pdata() 581 init_timer(&spc->ticker, csched_tick, (void *)(unsigned long)cpu, cpu); in init_pdata() 729 int cpu = vc->processor; in _csched_cpu_pick() local 787 if ( vc->processor == cpu && is_runq_idle(cpu) ) in _csched_cpu_pick() 804 cpu = cpumask_cycle(cpu, &cpus); in _csched_cpu_pick() 861 spc->idle_bias = cpu; in _csched_cpu_pick() 865 return cpu; in _csched_cpu_pick() 1104 ASSERT(!cpumask_test_cpu(cpu, CSCHED_PRIV(per_cpu(scheduler, cpu))->idlers)); in csched_vcpu_sleep() [all …]
|
A D | perfc.c | 41 unsigned int k, cpu; in perfc_printall() local 49 for_each_online_cpu ( cpu ) in perfc_printall() 57 for_each_online_cpu ( cpu ) in perfc_printall() 61 printk(" CPU%02u[%10"PRIperfc"u]", cpu, per_cpu(perfcounters, cpu)[j]); in perfc_printall() 69 for_each_online_cpu ( cpu ) in perfc_printall() 85 for_each_online_cpu ( cpu ) in perfc_printall() 95 for_each_online_cpu ( cpu ) in perfc_printall() 132 unsigned int cpu; in perfc_reset() local 137 for_each_online_cpu ( cpu ) in perfc_reset() 143 for_each_online_cpu ( cpu ) in perfc_reset() [all …]
|
A D | sched_credit2.c | 702 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), in get_fallback_cpu() 709 if ( likely(cpumask_test_cpu(cpu, cpumask_scratch_cpu(cpu))) ) in get_fallback_cpu() 710 return cpu; in get_fallback_cpu() 719 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), in get_fallback_cpu() 751 cpu = cpumask_first(cpumask_scratch_cpu(cpu)); in get_fallback_cpu() 2340 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), in csched2_cpu_pick() 2342 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), in csched2_cpu_pick() 2356 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), in csched2_cpu_pick() 2488 cpumask_and(cpumask_scratch_cpu(cpu), cpumask_scratch_cpu(cpu), in migrate() 3473 d.cpu = cpu; in csched2_schedule() [all …]
|
/xen-4.10.0-shim-comet/tools/xentrace/ |
A D | formats | 44 0x00022005 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) csched:picked_cpu [ dom:vcpu = 0x%(1)04x%(2)04x,… 45 0x00022006 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) csched:tickle [ cpu = %(1)d ] 48 0x00022009 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) csched:schedule [ cpu[16]:tasklet[8]:idle[8] =… 57 0x00022206 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) csched2:tickle [ cpu = %(1)d ] 75 0x00022801 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:tickle [ cpu = %(1)d ] 80 0x00022806 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:schedule [ cpu[16]:tasklet[8]:idle[4]:tic… 83 0x00022A02 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) null:assign [ dom:vcpu = 0x%(1)08x, cpu = %(… 84 0x00022A03 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) null:deassign [ dom:vcpu = 0x%(1)08x, cpu = %(… 85 0x00022A04 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) null:migrate [ dom:vcpu = 0x%(1)08x, new_cpu:… 86 0x00022A05 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) null:schedule [ cpu[16]:tasklet[16] = %(1)08x,… [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/genapic/ |
A D | x2apic.c | 58 for_each_online_cpu ( cpu ) in init_apic_ldr_x2apic_cluster() 60 if (this_cpu == cpu || x2apic_cluster(this_cpu) != x2apic_cluster(cpu)) in init_apic_ldr_x2apic_cluster() 77 return per_cpu(cluster_cpus, cpu); in vector_allocation_cpumask_x2apic_cluster() 86 for_each_cpu ( cpu, cluster_cpus ) in cpu_mask_to_apicid_x2apic_cluster() 100 unsigned int cpu; in send_IPI_mask_x2apic_phys() local 118 for_each_cpu ( cpu, cpumask ) in send_IPI_mask_x2apic_phys() 120 if ( !cpu_online(cpu) || (cpu == smp_processor_id()) ) in send_IPI_mask_x2apic_phys() 133 unsigned int cpu = smp_processor_id(); in send_IPI_mask_x2apic_cluster() local 150 for_each_cpu ( cpu, cluster_cpus ) in send_IPI_mask_x2apic_cluster() 209 if ( per_cpu(cluster_cpus, cpu) ) in update_clusterinfo() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/ |
A D | smpboot.c | 79 cpumask_set_cpu(cpu, per_cpu(cpu_sibling_mask, cpu)); in setup_cpu_sibling_map() 80 cpumask_set_cpu(cpu, per_cpu(cpu_core_mask, cpu)); in setup_cpu_sibling_map() 101 struct dt_device_node *cpu; in dt_smp_init_cpus() local 132 dt_node_full_name(cpu), dt_n_size_cells(cpu)); in dt_smp_init_cpus() 344 if ( cpu_disable_scheduler(cpu) ) in __cpu_disable() 363 int __init cpu_up_send_sgi(int cpu) in cpu_up_send_sgi() argument 374 int __cpu_up(unsigned int cpu) in __cpu_up() argument 391 init_data.cpuid = cpu; in __cpu_up() 397 rc = arch_cpu_up(cpu); in __cpu_up() 434 if ( !cpu_online(cpu) ) in __cpu_up() [all …]
|
A D | percpu.c | 13 unsigned int cpu; in percpu_init_areas() local 14 for ( cpu = 1; cpu < NR_CPUS; cpu++ ) in percpu_init_areas() 18 static int init_percpu_area(unsigned int cpu) in init_percpu_area() argument 26 __per_cpu_offset[cpu] = p - __per_cpu_start; in init_percpu_area() 31 unsigned int cpu; member 39 unsigned int cpu = info->cpu; in _free_percpu_area() local 45 static void free_percpu_area(unsigned int cpu) in free_percpu_area() argument 48 info->cpu = cpu; in free_percpu_area() 55 unsigned int cpu = (unsigned long)hcpu; in cpu_percpu_callback() local 61 rc = init_percpu_area(cpu); in cpu_percpu_callback() [all …]
|
/xen-4.10.0-shim-comet/xen/drivers/cpufreq/ |
A D | cpufreq_misc_governors.c | 33 unsigned int cpu; in cpufreq_governor_userspace() local 36 unlikely(!cpu_online(cpu = policy->cpu))) in cpufreq_governor_userspace() 41 if (!per_cpu(cpu_set_freq, cpu)) in cpufreq_governor_userspace() 42 per_cpu(cpu_set_freq, cpu) = policy->cur; in cpufreq_governor_userspace() 45 per_cpu(cpu_set_freq, cpu) = 0; in cpufreq_governor_userspace() 48 if (policy->max < per_cpu(cpu_set_freq, cpu)) in cpufreq_governor_userspace() 71 if (!cpu_online(cpu) || !(policy = per_cpu(cpufreq_cpu_policy, cpu))) in write_userspace_scaling_setspeed() 74 per_cpu(cpu_set_freq, cpu) = freq; in write_userspace_scaling_setspeed() 97 unsigned int cpu = (unsigned long)hcpu; in cpufreq_userspace_cpu_callback() local 121 unsigned int cpu; in cpufreq_gov_userspace_init() local [all …]
|
A D | cpufreq.c | 137 if (!cpu_online(cpu) || !(data = per_cpu(cpufreq_cpu_policy, cpu)) || in cpufreq_limit_change() 138 !processor_pminfo[cpu]) in cpufreq_limit_change() 154 int cpufreq_add_cpu(unsigned int cpu) in cpufreq_add_cpu() argument 167 if ( !processor_pminfo[cpu] || !cpu_online(cpu) ) in cpufreq_add_cpu() 239 policy->cpu = cpu; in cpufreq_add_cpu() 294 cpufreq_statistic_exit(cpu); in cpufreq_add_cpu() 315 int cpufreq_del_cpu(unsigned int cpu) in cpufreq_del_cpu() argument 325 if ( !processor_pminfo[cpu] || !cpu_online(cpu) ) in cpufreq_del_cpu() 359 cpufreq_statistic_exit(cpu); in cpufreq_del_cpu() 643 (void)cpufreq_add_cpu(cpu); in cpu_callback() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/acpi/cpufreq/ |
A D | cpufreq.c | 207 if (!cpumask_test_cpu(cpu, mask)) in get_cur_val() 208 cpu = cpumask_first(mask); in get_cur_val() 209 if (cpu >= nr_cpu_ids || !cpu_online(cpu)) in get_cur_val() 231 cmd.mask = cpumask_of(cpu); in get_cur_val() 277 if (!cpu_online(cpu)) in get_measured_perf() 300 if (cpu == smp_processor_id()) { in get_measured_perf() 334 if (!cpu_online(cpu)) in get_cur_freq_on_cpu() 515 unsigned int cpu = policy->cpu; in acpi_cpufreq_cpu_init() local 525 cpufreq_drv_data[cpu] = data; in acpi_cpufreq_cpu_init() 543 if (!check_est_cpu(cpu)) { in acpi_cpufreq_cpu_init() [all …]
|
/xen-4.10.0-shim-comet/tools/libacpi/ |
A D | mk_dsdt.c | 116 unsigned int cpu, max_cpus; in main() local 197 for ( cpu = 0; cpu < max_cpus; cpu++) in main() 199 push_block("Processor", "PR%02X, %d, 0x0000b010, 0x06", cpu, cpu); in main() 203 stmt("Name", "_UID, %d", cpu); in main() 222 if ( cpu ) in main() 223 stmt("Return", "PMAT (%d, MAT)", cpu); in main() 229 if ( cpu ) in main() 234 if ( cpu ) in main() 261 for ( cpu = 0; cpu < max_cpus; cpu++ ) in main() 264 if ( (cpu & 7) == 0 ) in main() [all …]
|