/linux/drivers/cpufreq/ |
A D | intel_pstate.c | 431 cpu = all_cpu_data[policy->cpu]; in intel_pstate_init_acpi_perf_limits() 491 cpu = all_cpu_data[policy->cpu]; in intel_pstate_exit_perf_limits() 560 cpu->cpu, scaling); in intel_pstate_hybrid_hwp_adjust() 1947 trace_cpu_frequency(pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_set_pstate() 1984 cpu->pstate.scaling = pstate_funcs.get_cpu_scaling(cpu->cpu); in intel_pstate_get_cpu_pstates() 2152 cpu->sample.tsc -= cpu->prev_tsc; in intel_pstate_sample() 2244 trace_cpu_frequency(target_pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_adjust_pstate() 2400 cpu->cpu = cpunum; in intel_pstate_init_cpu() 2547 cpu = all_cpu_data[policy->cpu]; in intel_pstate_set_policy() 2688 cpu = all_cpu_data[policy->cpu]; in __intel_pstate_cpu_init() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | smp.c | 508 BUG_ON(cpu < 0 && cpu != NMI_IPI_ALL_OTHERS); in __smp_send_nmi_ipi() 524 if (cpu < 0) { in __smp_send_nmi_ipi() 601 int cpu; in crash_send_ipi() local 1029 int cpu; in init_big_cores() local 1090 set_cpu_numa_node(cpu, numa_cpu_lookup_table[cpu]); in smp_prepare_cpus() 1226 task_thread_info(idle)->cpu = cpu; in cpu_idle_thread_init() 1378 cpumask_set_cpu(cpu, cpu_l2_cache_mask(cpu)); in update_mask_by_l2() 1469 cpumask_set_cpu(cpu, cpu_smallcore_mask(cpu)); in add_cpu_to_smallcore_masks() 1526 map_cpu_to_node(cpu, cpu_to_node(cpu)); in add_cpu_to_masks() 1527 cpumask_set_cpu(cpu, cpu_sibling_mask(cpu)); in add_cpu_to_masks() [all …]
|
A D | watchdog.c | 122 cpu, tb, per_cpu(wd_timer_tb, cpu), in wd_lockup_ipi() 176 if (c == cpu) in watchdog_smp_panic() 215 cpu, tb); in wd_smp_clear_cpu_pending() 251 watchdog_smp_panic(cpu, tb); in watchdog_timer_interrupt() 275 set_cpu_stuck(cpu, tb); in DEFINE_INTERRUPT_HANDLER_NMI() 278 cpu, (void *)regs->nip); in DEFINE_INTERRUPT_HANDLER_NMI() 280 cpu, tb, per_cpu(wd_timer_tb, cpu), in DEFINE_INTERRUPT_HANDLER_NMI() 404 int cpu; in watchdog_nmi_stop() local 407 stop_watchdog_on_cpu(cpu); in watchdog_nmi_stop() 412 int cpu; in watchdog_nmi_start() local [all …]
|
A D | tau_6xx.c | 82 tau[cpu].grew = 1; in TAUupdate() 93 tau[cpu].grew = 1; in TAUupdate() 110 TAUupdate(cpu); in DEFINE_INTERRUPT_HANDLER_ASYNC() 116 int cpu; in tau_timeout() local 123 TAUupdate(cpu); in tau_timeout() 128 size = tau[cpu].high - tau[cpu].low; in tau_timeout() 138 if ((tau[cpu].high - tau[cpu].low) != min_window){ in tau_timeout() 145 tau[cpu].grew = 0; in tau_timeout() 184 tau[cpu].low = 5; in TAU_init_smp() 227 return ((tau[cpu].high << 16) | tau[cpu].low); in cpu_temp_both() [all …]
|
/linux/tools/testing/selftests/cpu-hotplug/ |
A D | cpu-on-off-test.sh | 26 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then 62 for cpu in $SYSFS/devices/system/cpu/cpu*; do 63 if [ -f $cpu/online ] && grep -q $state $cpu/online; then 81 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online 86 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online 91 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online 96 echo 0 > $SYSFS/devices/system/cpu/cpu$1/online 101 local cpu=$1 114 local cpu=$1 127 local cpu=$1 [all …]
|
/linux/arch/arm/boot/dts/ |
A D | axm5516-cpus.dtsi | 13 cpu-map { 16 cpu = <&CPU0>; 19 cpu = <&CPU1>; 22 cpu = <&CPU2>; 25 cpu = <&CPU3>; 30 cpu = <&CPU4>; 33 cpu = <&CPU5>; 72 CPU0: cpu@0 { 80 CPU1: cpu@1 { 88 CPU2: cpu@2 { [all …]
|
/linux/arch/arc/kernel/ |
A D | setup.c | 136 cpu->name = cpu->release = "Unknown"; in decode_arc_core() 280 cpu_id, cpu->name, cpu->release, in arc_cpu_mumbojumbo() 317 cpu->bpu.num_cache, cpu->bpu.num_pred, cpu->bpu.ret_stk); in arc_cpu_mumbojumbo() 347 if (cpu->extn.fpu_sp || cpu->extn.fpu_dp) in arc_extn_mumbojumbo() 352 if (cpu->extn.ap_num | cpu->extn.smart | cpu->extn.rtt) { in arc_extn_mumbojumbo() 364 if (cpu->dccm.sz || cpu->iccm.sz) in arc_extn_mumbojumbo() 366 cpu->dccm.base_addr, TO_KB(cpu->dccm.sz), in arc_extn_mumbojumbo() 367 cpu->iccm.base_addr, TO_KB(cpu->iccm.sz)); in arc_extn_mumbojumbo() 444 present = cpu->extn_mpy.dsp | cpu->extn.fpu_sp | cpu->extn.fpu_dp; in arc_chk_core_config() 693 int cpu; in topology_init() local [all …]
|
/linux/drivers/base/ |
A D | arch_topology.c | 58 int cpu; in topology_set_scale_freq_source() local 89 int cpu; in topology_clear_scale_freq_source() local 161 int cpu; in topology_set_thermal_pressure() local 172 struct cpu *cpu = container_of(dev, struct cpu, dev); in cpu_capacity_show() local 235 int cpu; in topology_normalize_cpu_scale() local 253 cpu, topology_get_cpu_scale(cpu)); in topology_normalize_cpu_scale() 319 int cpu; in init_cpu_capacity_callback() local 403 int cpu; in get_cpu_for_node() local 426 int cpu; in parse_core() local 539 int cpu; in parse_dt_topology() local [all …]
|
A D | cacheinfo.c | 25 #define ci_cacheinfo(cpu) (&per_cpu(ci_cpu_cacheinfo, cpu)) argument 26 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) argument 27 #define per_cpu_cacheinfo(cpu) (ci_cacheinfo(cpu)->info_list) argument 31 return ci_cacheinfo(cpu); in get_cpu_cacheinfo() 300 cache_leaves(cpu) = 0; in free_cache_attributes() 317 if (init_cache_level(cpu) || !cache_leaves(cpu)) in detect_cache_attributes() 320 per_cpu_cacheinfo(cpu) = kcalloc(cache_leaves(cpu), in detect_cache_attributes() 352 #define per_cpu_cache_dev(cpu) (per_cpu(ci_cache_dev, cpu)) argument 358 #define per_cpu_index_dev(cpu) (per_cpu(ci_index_dev, cpu)) argument 359 #define per_cache_index_dev(cpu, idx) ((per_cpu_index_dev(cpu))[idx]) argument [all …]
|
/linux/tools/power/x86/intel-speed-select/ |
A D | isst-core.c | 271 cpu, config_index, i, resp); in isst_get_coremask_info() 321 cpu, req, resp); in isst_get_get_trl() 439 max_punit_core = get_max_punit_core_id(get_physical_package_id(cpu), get_physical_die_id(cpu)); in isst_get_pbf_info() 454 cpu, resp); in isst_get_pbf_info() 551 cpu, pbf, req); in isst_set_pbf_fact_status() 566 cpu, CONFIG_TDP, in isst_get_fact_bucket_info() 574 cpu, i, level, resp); in isst_get_fact_bucket_info() 587 cpu, CONFIG_TDP, in isst_get_fact_bucket_info() 595 cpu, i, level, k, resp); in isst_get_fact_bucket_info() 655 cpu, resp); in isst_get_fact_info() [all …]
|
/linux/kernel/ |
A D | smpboot.c | 55 tsk = fork_idle(cpu); in idle_init() 73 if (cpu != boot_cpu) in idle_threads_init() 74 idle_init(cpu); in idle_threads_init() 85 unsigned int cpu; member 119 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn() 129 ht->park(td->cpu); in smpboot_thread_fn() 145 ht->setup(td->cpu); in smpboot_thread_fn() 181 td->cpu = cpu; in __smpboot_create_thread() 208 ht->create(cpu); in __smpboot_create_thread() 268 unsigned int cpu; in smpboot_destroy_threads() local [all …]
|
/linux/include/linux/ |
A D | cpumask.h | 116 return cpu; in cpumask_check() 179 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) 181 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) 183 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask, (void)(start)) 185 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask1, (void)mask2) 242 (cpu) = cpumask_next((cpu), (mask)), \ 254 (cpu) = cpumask_next_zero((cpu), (mask)), \ 272 (cpu) = cpumask_next_wrap((cpu), (mask), (start), true)) 290 (cpu) = cpumask_next_and((cpu), (mask1), (mask2)), \ 610 #define cpumask_of(cpu) (get_cpu_mask(cpu)) argument [all …]
|
A D | topology.h | 96 return per_cpu(numa_node, cpu); in cpu_to_node() 110 per_cpu(numa_node, cpu) = node; in set_cpu_numa_node() 177 return cpu_to_node(cpu); in cpu_to_mem() 184 #define topology_physical_package_id(cpu) ((void)(cpu), -1) argument 187 #define topology_die_id(cpu) ((void)(cpu), -1) argument 190 #define topology_cluster_id(cpu) ((void)(cpu), -1) argument 193 #define topology_core_id(cpu) ((void)(cpu), 0) argument 196 #define topology_sibling_cpumask(cpu) cpumask_of(cpu) argument 199 #define topology_core_cpumask(cpu) cpumask_of(cpu) argument 202 #define topology_cluster_cpumask(cpu) cpumask_of(cpu) argument [all …]
|
/linux/arch/arm/mach-meson/ |
A D | platsmp.c | 50 val |= BIT(cpu); in meson_smp_set_cpu_ctrl() 52 val &= ~BIT(cpu); in meson_smp_set_cpu_ctrl() 129 scu_cpu_power_enable(scu_base, cpu); in meson_smp_begin_secondary_boot() 140 cpu); in meson_smp_finalize_secondary_boot() 148 meson_smp_set_cpu_ctrl(cpu, true); in meson_smp_finalize_secondary_boot() 159 rstc = meson_smp_get_core_reset(cpu); in meson8_smp_boot_secondary() 165 meson_smp_begin_secondary_boot(cpu); in meson8_smp_boot_secondary() 222 meson_smp_begin_secondary_boot(cpu); in meson8b_smp_boot_secondary() 295 meson_smp_set_cpu_ctrl(cpu, false); in meson8_smp_cpu_die() 325 cpu); in meson8_smp_cpu_kill() [all …]
|
/linux/arch/x86/xen/ |
A D | smp_pv.c | 62 int cpu; in cpu_bringup() local 73 cpu = smp_processor_id(); in cpu_bringup() 74 smp_store_cpu_info(cpu); in cpu_bringup() 76 set_cpu_sibling_map(cpu); in cpu_bringup() 122 cpu, in xen_smp_intr_init_pv() 132 if (is_xen_pmu(cpu)) { in xen_smp_intr_init_pv() 227 unsigned cpu; in xen_pv_smp_prepare_cpus() local 258 for (cpu = nr_cpu_ids - 1; !cpu_possible(cpu); cpu--) in xen_pv_smp_prepare_cpus() 358 xen_pmu_init(cpu); in xen_pv_cpu_up() 373 if (cpu == 0) in xen_pv_cpu_disable() [all …]
|
A D | smp.c | 69 cpu, in xen_smp_intr_init() 81 cpu, in xen_smp_intr_init() 105 cpu, in xen_smp_intr_init() 118 xen_smp_intr_free(cpu); in xen_smp_intr_init() 138 unsigned cpu; in __xen_send_IPI_mask() local 141 xen_send_IPI_one(cpu, vector); in __xen_send_IPI_mask() 146 int cpu; in xen_smp_send_call_function_ipi() local 151 for_each_cpu(cpu, mask) { in xen_smp_send_call_function_ipi() 152 if (xen_vcpu_stolen(cpu)) { in xen_smp_send_call_function_ipi() 225 unsigned cpu; in xen_send_IPI_mask_allbutself() local [all …]
|
/linux/arch/microblaze/kernel/cpu/ |
A D | cpuinfo-static.c | 51 ci->use_fpu = fcpu(cpu, "xlnx,use-fpu"); in set_cpuinfo_static() 63 (fcpu(cpu, "xlnx,iopb-bus-exception") ? in set_cpuinfo_static() 65 (fcpu(cpu, "xlnx,dopb-bus-exception") ? in set_cpuinfo_static() 67 (fcpu(cpu, "xlnx,div-zero-exception") ? in set_cpuinfo_static() 77 if (fcpu(cpu, "xlnx,icache-use-fsl")) in set_cpuinfo_static() 91 if (fcpu(cpu, "xlnx,dcache-use-fsl")) in set_cpuinfo_static() 101 ci->use_dopb = fcpu(cpu, "xlnx,d-opb"); in set_cpuinfo_static() 102 ci->use_iopb = fcpu(cpu, "xlnx,i-opb"); in set_cpuinfo_static() 103 ci->use_dlmb = fcpu(cpu, "xlnx,d-lmb"); in set_cpuinfo_static() 104 ci->use_ilmb = fcpu(cpu, "xlnx,i-lmb"); in set_cpuinfo_static() [all …]
|
/linux/arch/arm/mach-bcm/ |
A D | platsmp-brcmstb.c | 90 static u32 pwr_ctrl_rd(u32 cpu) in pwr_ctrl_rd() argument 115 tmp = pwr_ctrl_rd(cpu) & mask; in pwr_ctrl_wait_tmout() 120 tmp = pwr_ctrl_rd(cpu) & mask; in pwr_ctrl_wait_tmout() 148 per_cpu_sw_state_wr(cpu, 1); in brcmstb_cpu_boot() 157 cpu_rst_cfg_set(cpu, 0); in brcmstb_cpu_boot() 186 int tmp = pwr_ctrl_rd(cpu); in brcmstb_cpu_get_power_state() 196 per_cpu_sw_state_wr(cpu, 0); in brcmstb_cpu_die() 214 if (cpu == 0) { in brcmstb_cpu_kill() 240 cpu_rst_cfg_set(cpu, 1); in brcmstb_cpu_kill() 355 brcmstb_cpu_power_on(cpu); in brcmstb_boot_secondary() [all …]
|
/linux/arch/arm64/kernel/ |
A D | smp.c | 138 if (cpu_online(cpu)) in __cpu_up() 150 cpu, status); in __cpu_up() 243 ipi_setup(cpu); in secondary_start_kernel() 246 numa_add_cpu(cpu); in secondary_start_kernel() 310 ipi_teardown(cpu); in __cpu_disable() 381 ops->cpu_die(cpu); in cpu_die() 393 ops->cpu_die(cpu); in __cpu_try_die() 413 __cpu_try_die(cpu); in cpu_die_early() 722 unsigned int cpu; in smp_prepare_cpus() local 746 per_cpu(cpu_number, cpu) = cpu; in smp_prepare_cpus() [all …]
|
/linux/arch/powerpc/include/asm/ |
A D | smp.h | 33 extern int cpu_to_chip_id(int cpu); 45 void (*cause_ipi)(int cpu); 47 int (*cause_nmi_ipi)(int cpu); 78 int is_cpu_dead(unsigned int cpu); 95 return smp_hw_index[cpu]; in get_hard_smp_processor_id() 100 smp_hw_index[cpu] = phys; in set_hard_smp_processor_id() 116 return per_cpu(cpu_core_map, cpu); in cpu_core_mask() 129 extern int cpu_to_core_id(int cpu); 193 return cpumask_of(cpu); in cpu_sibling_mask() 198 return cpumask_of(cpu); in cpu_smallcore_mask() [all …]
|
/linux/arch/arm/mach-tegra/ |
A D | platsmp.c | 44 cpu = cpu_logical_map(cpu); in tegra20_boot_secondary() 54 tegra_put_cpu_in_reset(cpu); in tegra20_boot_secondary() 62 flowctrl_write_cpu_halt(cpu, 0); in tegra20_boot_secondary() 64 tegra_enable_cpu_clock(cpu); in tegra20_boot_secondary() 66 tegra_cpu_out_of_reset(cpu); in tegra20_boot_secondary() 75 cpu = cpu_logical_map(cpu); in tegra30_boot_secondary() 76 tegra_put_cpu_in_reset(cpu); in tegra30_boot_secondary() 114 tegra_enable_cpu_clock(cpu); in tegra30_boot_secondary() 125 tegra_cpu_out_of_reset(cpu); in tegra30_boot_secondary() 133 cpu = cpu_logical_map(cpu); in tegra114_boot_secondary() [all …]
|
/linux/arch/x86/include/asm/ |
A D | topology.h | 48 extern int __cpu_to_node(int cpu); 108 #define topology_logical_package_id(cpu) (cpu_data(cpu).logical_proc_id) argument 109 #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) argument 110 #define topology_logical_die_id(cpu) (cpu_data(cpu).logical_die_id) argument 111 #define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id) argument 112 #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) argument 117 #define topology_cluster_id(cpu) (per_cpu(cpu_l2c_id, cpu)) argument 118 #define topology_die_cpumask(cpu) (per_cpu(cpu_die_map, cpu)) argument 119 #define topology_cluster_cpumask(cpu) (cpu_clustergroup_mask(cpu)) argument 120 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument [all …]
|
/linux/Documentation/devicetree/bindings/cpu/ |
A D | cpu-topology.txt | 39 2 - cpu-map node 46 - cpu-map node 148 - cpu 173 - cpu 190 cpu-map { 276 CPU0: cpu@0 { 284 CPU1: cpu@1 { 411 cpu-map { 443 CPU0: cpu@0 { 449 CPU1: cpu@1 { [all …]
|
/linux/arch/arm/kernel/ |
A D | smp.c | 111 if (!cpu_vtable[cpu]) in secondary_biglittle_prepare() 112 cpu_vtable[cpu] = kzalloc(sizeof(*cpu_vtable[cpu]), GFP_KERNEL); in secondary_biglittle_prepare() 158 task_thread_info(idle)->cpu = cpu; in __cpu_up() 239 return cpu != 0; in platform_can_hotplug_cpu() 274 ipi_teardown(cpu); in __cpu_disable() 373 cpu); in arch_cpu_idle_dead() 413 unsigned int cpu; in secondary_start_kernel() local 454 ipi_setup(cpu); in secondary_start_kernel() 483 int cpu; in smp_cpus_done() local 665 ipi_cpu_stop(cpu); in do_handle_IPI() [all …]
|
/linux/arch/arm64/boot/dts/cavium/ |
A D | thunder-88xx.dtsi | 65 cpu@0 { 71 cpu@1 { 77 cpu@2 { 83 cpu@3 { 89 cpu@4 { 95 cpu@5 { 101 cpu@6 { 107 cpu@7 { 113 cpu@8 { 119 cpu@9 { [all …]
|