/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | intel_pstate.c | 20 #include <linux/cpu.h> 30 #include <asm/cpu.h> 97 * to account for cpu idle period 133 * Stores the per cpu model P state limits and current P state. 191 * @cpu: CPU number for this instance data 229 int cpu; member 275 * @get_cpu_scaling: Get frequency scaling factor for a given cpu 284 int (*get_max)(int cpu); 285 int (*get_max_physical)(int cpu); 286 int (*get_min)(int cpu); 352 intel_pstate_set_itmt_prio(int cpu) intel_pstate_set_itmt_prio() argument 396 intel_pstate_get_cppc_guaranteed(int cpu) intel_pstate_get_cppc_guaranteed() argument 411 intel_pstate_cppc_get_scaling(int cpu) intel_pstate_cppc_get_scaling() argument 431 intel_pstate_set_itmt_prio(int cpu) intel_pstate_set_itmt_prio() argument 438 struct cpudata *cpu; intel_pstate_init_acpi_perf_limits() local 494 struct cpudata *cpu; intel_pstate_exit_perf_limits() local 518 intel_pstate_get_cppc_guaranteed(int cpu) intel_pstate_get_cppc_guaranteed() argument 523 intel_pstate_cppc_get_scaling(int cpu) intel_pstate_cppc_get_scaling() argument 529 intel_pstate_freq_to_hwp_rel(struct cpudata *cpu, int freq, unsigned int relation) intel_pstate_freq_to_hwp_rel() argument 548 intel_pstate_freq_to_hwp(struct cpudata *cpu, int freq) intel_pstate_freq_to_hwp() argument 564 intel_pstate_hybrid_hwp_adjust(struct cpudata *cpu) intel_pstate_hybrid_hwp_adjust() argument 599 struct cpudata *cpu; update_turbo_state() local 610 struct cpudata *cpu = all_cpu_data[0]; min_perf_pct_min() local 656 intel_pstate_set_epb(int cpu, s16 pref) intel_pstate_set_epb() argument 748 intel_pstate_set_epp(struct cpudata *cpu, u32 epp) intel_pstate_set_epp() argument 829 struct cpudata *cpu = all_cpu_data[policy->cpu]; store_energy_performance_preference() local 914 struct cpudata *cpu = all_cpu_data[policy->cpu]; show_base_frequency() local 941 __intel_pstate_get_hwp_cap(struct cpudata *cpu) __intel_pstate_get_hwp_cap() argument 951 intel_pstate_get_hwp_cap(struct cpudata *cpu) intel_pstate_get_hwp_cap() argument 969 intel_pstate_hwp_set(unsigned int cpu) intel_pstate_hwp_set() argument 1034 intel_pstate_hwp_offline(struct cpudata *cpu) intel_pstate_hwp_offline() argument 1103 intel_pstate_hwp_reenable(struct cpudata *cpu) intel_pstate_hwp_reenable() argument 1111 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_suspend() local 1125 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_resume() local 1151 int cpu; intel_pstate_update_policies() local 1165 intel_pstate_update_max_freq(unsigned int cpu) intel_pstate_update_max_freq() argument 1177 intel_pstate_update_limits(unsigned int cpu) intel_pstate_update_limits() argument 1237 struct cpudata *cpu; show_turbo_pct() local 1263 struct cpudata *cpu; show_num_pstates() local 1334 struct cpudata *cpu = all_cpu_data[0]; store_no_turbo() local 1359 struct cpudata *cpu = all_cpu_data[i]; update_qos_request() local 1860 core_get_min_pstate(int cpu) core_get_min_pstate() argument 1868 core_get_max_pstate_physical(int cpu) core_get_max_pstate_physical() argument 1876 core_get_tdp_ratio(int cpu, u64 plat_info) core_get_tdp_ratio() argument 1909 core_get_max_pstate(int cpu) core_get_max_pstate() argument 1944 core_get_turbo_pstate(int cpu) core_get_turbo_pstate() argument 1973 knl_get_turbo_pstate(int cpu) knl_get_turbo_pstate() argument 1993 hwp_get_cpu_scaling(int cpu) hwp_get_cpu_scaling() argument 2017 intel_pstate_set_pstate(struct cpudata *cpu, int pstate) intel_pstate_set_pstate() argument 2030 intel_pstate_set_min_pstate(struct cpudata *cpu) intel_pstate_set_min_pstate() argument 2035 intel_pstate_max_within_limits(struct cpudata *cpu) intel_pstate_max_within_limits() argument 2043 intel_pstate_get_cpu_pstates(struct cpudata *cpu) intel_pstate_get_cpu_pstates() argument 2091 intel_pstate_hwp_boost_up(struct cpudata *cpu) intel_pstate_hwp_boost_up() argument 2138 intel_pstate_hwp_boost_down(struct cpudata *cpu) intel_pstate_hwp_boost_down() argument 2154 intel_pstate_update_util_hwp_local(struct cpudata *cpu, u64 time) intel_pstate_update_util_hwp_local() argument 2186 struct cpudata *cpu = container_of(data, struct cpudata, update_util); intel_pstate_update_util_hwp() local 2194 intel_pstate_calc_avg_perf(struct cpudata *cpu) intel_pstate_calc_avg_perf() argument 2201 intel_pstate_sample(struct cpudata *cpu, u64 time) intel_pstate_sample() argument 2243 get_avg_frequency(struct cpudata *cpu) get_avg_frequency() argument 2248 get_avg_pstate(struct cpudata *cpu) get_avg_pstate() argument 2254 get_target_pstate(struct cpudata *cpu) get_target_pstate() argument 2289 intel_pstate_prepare_request(struct cpudata *cpu, int pstate) intel_pstate_prepare_request() argument 2297 intel_pstate_update_pstate(struct cpudata *cpu, int pstate) intel_pstate_update_pstate() argument 2306 intel_pstate_adjust_pstate(struct cpudata *cpu) intel_pstate_adjust_pstate() argument 2334 struct cpudata *cpu = container_of(data, struct cpudata, update_util); intel_pstate_update_util() local 2458 struct cpudata *cpu; intel_pstate_init_cpu() local 2500 struct cpudata *cpu = all_cpu_data[cpu_num]; intel_pstate_set_update_util_hook() local 2517 intel_pstate_clear_update_util_hook(unsigned int cpu) intel_pstate_clear_update_util_hook() argument 2529 intel_pstate_get_max_freq(struct cpudata *cpu) intel_pstate_get_max_freq() argument 2535 intel_pstate_update_perf_limits(struct cpudata *cpu, unsigned int policy_min, unsigned int policy_max) intel_pstate_update_perf_limits() argument 2600 struct cpudata *cpu; intel_pstate_set_policy() local 2647 intel_pstate_adjust_policy_max(struct cpudata *cpu, struct cpufreq_policy_data *policy) intel_pstate_adjust_policy_max() argument 2659 intel_pstate_verify_cpu_policy(struct cpudata *cpu, struct cpufreq_policy_data *policy) intel_pstate_verify_cpu_policy() argument 2686 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_cpu_offline() local 2711 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_cpu_online() local 2747 struct cpudata *cpu; __intel_pstate_cpu_init() local 2790 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_cpu_init() local 2814 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_verify_policy() local 2838 intel_cpufreq_trace(struct cpudata *cpu, unsigned int trace_type, int old_pstate) intel_cpufreq_trace() argument 2860 intel_cpufreq_hwp_update(struct cpudata *cpu, u32 min, u32 max, u32 desired, bool fast_switch) intel_cpufreq_hwp_update() argument 2884 intel_cpufreq_perf_ctl_update(struct cpudata *cpu, u32 target_pstate, bool fast_switch) intel_cpufreq_perf_ctl_update() argument 2898 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_update_pstate() local 2924 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_target() local 2948 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_fast_switch() local 2965 struct cpudata *cpu = all_cpu_data[cpunum]; intel_cpufreq_adjust_perf() local 3008 struct cpudata *cpu; intel_cpufreq_cpu_init() local 3097 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_suspend() local 3132 unsigned int cpu; intel_pstate_driver_cleanup() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | smp.c | 29 #include <linux/cpu.h> 125 * Returns 1 if the specified cpu should be brought up during boot. 259 void smp_muxed_ipi_set_message(int cpu, int msg) in smp_muxed_ipi_set_message() argument 261 struct cpu_messages *info = &per_cpu(ipi_message, cpu); in smp_muxed_ipi_set_message() 271 void smp_muxed_ipi_message_pass(int cpu, int msg) in smp_muxed_ipi_message_pass() argument 273 smp_muxed_ipi_set_message(cpu, msg); in smp_muxed_ipi_message_pass() 279 smp_ops->cause_ipi(cpu); in smp_muxed_ipi_message_pass() 333 static inline void do_message_pass(int cpu, int msg) in do_message_pass() argument 336 smp_ops->message_pass(cpu, msg); in do_message_pass() 339 smp_muxed_ipi_message_pass(cpu, ms in do_message_pass() 343 smp_send_reschedule(int cpu) smp_send_reschedule() argument 350 arch_send_call_function_single_ipi(int cpu) arch_send_call_function_single_ipi() argument 357 unsigned int cpu; arch_send_call_function_ipi_mask() local 451 do_smp_send_nmi_ipi(int cpu, bool safe) do_smp_send_nmi_ipi() argument 475 __smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us, bool safe) __smp_send_nmi_ipi() argument 540 smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) smp_send_nmi_ipi() argument 545 smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) smp_send_safe_nmi_ipi() argument 554 unsigned int cpu; tick_broadcast() local 576 int cpu; crash_send_ipi() local 840 get_cpu_thread_group_start(int cpu, struct thread_groups *tg) get_cpu_thread_group_start() argument 859 init_cpu_l1_cache_map(int cpu) init_cpu_l1_cache_map() argument 936 shared_cache_mask(int cpu) shared_cache_mask() argument 942 smallcore_smt_mask(int cpu) smallcore_smt_mask() argument 948 cpu_coregroup_mask(int cpu) cpu_coregroup_mask() argument 958 cpu_mc_mask(int cpu) cpu_mc_mask() argument 975 int cpu; init_big_cores() local 994 unsigned int cpu; smp_prepare_cpus() local 1063 unsigned int cpu = smp_processor_id(); generic_cpu_disable() local 1090 generic_cpu_die(unsigned int cpu) generic_cpu_die() argument 1103 generic_set_cpu_dead(unsigned int cpu) generic_set_cpu_dead() argument 1113 generic_set_cpu_up(unsigned int cpu) generic_set_cpu_up() argument 1118 generic_check_cpu_restart(unsigned int cpu) generic_check_cpu_restart() argument 1123 is_cpu_dead(unsigned int cpu) is_cpu_dead() argument 1139 cpu_idle_thread_init(unsigned int cpu, struct task_struct *idle) cpu_idle_thread_init() argument 1150 __cpu_up(unsigned int cpu, struct task_struct *tidle) __cpu_up() argument 1233 cpu_to_core_id(int cpu) cpu_to_core_id() argument 1255 cpu_core_index_of_thread(int cpu) cpu_core_index_of_thread() argument 1270 cpu_to_l2cache(int cpu) cpu_to_l2cache() argument 1289 update_mask_by_l2(int cpu, cpumask_var_t *mask) update_mask_by_l2() argument 1338 remove_cpu_from_masks(int cpu) remove_cpu_from_masks() argument 1365 add_cpu_to_smallcore_masks(int cpu) add_cpu_to_smallcore_masks() argument 1380 update_coregroup_mask(int cpu, cpumask_var_t *mask) update_coregroup_mask() argument 1416 add_cpu_to_masks(int cpu) add_cpu_to_masks() argument 1474 unsigned int cpu = raw_smp_processor_id(); start_secondary() local 1600 int cpu = smp_processor_id(); __cpu_disable() local 1618 __cpu_die(unsigned int cpu) __cpu_die() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/xen/ |
H A D | smp.c | 3 #include <linux/cpu.h> 33 void xen_smp_intr_free(unsigned int cpu) in xen_smp_intr_free() argument 35 kfree(per_cpu(xen_resched_irq, cpu).name); in xen_smp_intr_free() 36 per_cpu(xen_resched_irq, cpu).name = NULL; in xen_smp_intr_free() 37 if (per_cpu(xen_resched_irq, cpu).irq >= 0) { in xen_smp_intr_free() 38 unbind_from_irqhandler(per_cpu(xen_resched_irq, cpu).irq, NULL); in xen_smp_intr_free() 39 per_cpu(xen_resched_irq, cpu).irq = -1; in xen_smp_intr_free() 41 kfree(per_cpu(xen_callfunc_irq, cpu).name); in xen_smp_intr_free() 42 per_cpu(xen_callfunc_irq, cpu).name = NULL; in xen_smp_intr_free() 43 if (per_cpu(xen_callfunc_irq, cpu) in xen_smp_intr_free() 62 xen_smp_intr_init(unsigned int cpu) xen_smp_intr_init() argument 124 int cpu, rc, count = 0; xen_smp_cpus_done() local 154 xen_smp_send_reschedule(int cpu) xen_smp_send_reschedule() argument 162 unsigned cpu; __xen_send_IPI_mask() local 170 int cpu; xen_smp_send_call_function_ipi() local 183 xen_smp_send_call_function_single_ipi(int cpu) xen_smp_send_call_function_single_ipi() argument 249 unsigned cpu; xen_send_IPI_mask_allbutself() local [all...] |
H A D | smp_pv.c | 31 #include <asm/cpu.h> 63 int cpu; in cpu_bringup() local 76 cpu = smp_processor_id(); in cpu_bringup() 77 smp_store_cpu_info(cpu); in cpu_bringup() 78 cpu_data(cpu).x86_max_cores = 1; in cpu_bringup() 79 set_cpu_sibling_map(cpu); in cpu_bringup() 85 notify_cpu_starting(cpu); in cpu_bringup() 87 set_cpu_online(cpu, true); in cpu_bringup() 89 cpu_set_state_online(cpu); /* Implies full memory barrier. */ in cpu_bringup() 101 void xen_smp_intr_free_pv(unsigned int cpu) in xen_smp_intr_free_pv() argument 118 xen_smp_intr_init_pv(unsigned int cpu) xen_smp_intr_init_pv() argument 213 unsigned cpu; xen_pv_smp_prepare_cpus() local 262 cpu_initialize_context(unsigned int cpu, struct task_struct *idle) cpu_initialize_context() argument 331 xen_pv_cpu_up(unsigned int cpu, struct task_struct *idle) xen_pv_cpu_up() argument 370 unsigned int cpu = smp_processor_id(); xen_pv_cpu_disable() local 380 xen_pv_cpu_die(unsigned int cpu) xen_pv_cpu_die() argument 419 xen_pv_cpu_die(unsigned int cpu) xen_pv_cpu_die() argument 432 int cpu = smp_processor_id(); stop_self() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | topology.h | 94 static inline int cpu_to_node(int cpu) in cpu_to_node() argument 96 return per_cpu(numa_node, cpu); in cpu_to_node() 108 static inline void set_cpu_numa_node(int cpu, int node) in set_cpu_numa_node() argument 110 per_cpu(numa_node, cpu) = node; in set_cpu_numa_node() 129 * N.B., Do NOT reference the '_numa_mem_' per cpu variable directly. 151 static inline int cpu_to_mem(int cpu) in cpu_to_mem() argument 153 return per_cpu(_numa_mem_, cpu); in cpu_to_mem() 158 static inline void set_cpu_numa_mem(int cpu, int node) in set_cpu_numa_mem() argument 160 per_cpu(_numa_mem_, cpu) = node; in set_cpu_numa_mem() 175 static inline int cpu_to_mem(int cpu) in cpu_to_mem() argument 237 cpu_smt_mask(int cpu) cpu_smt_mask() argument 243 cpu_cpu_mask(int cpu) cpu_cpu_mask() argument 252 sched_numa_find_nth_cpu(const struct cpumask *cpus, int cpu, int node) sched_numa_find_nth_cpu() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/cpu-hotplug/ |
H A D | cpu-on-off-test.sh | 26 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then 27 echo $msg cpu hotplug is not supported >&2 32 online_cpus=`cat $SYSFS/devices/system/cpu/online` 36 echo "$msg: since there is only one cpu: $online_cpus" 40 present_cpus=`cat $SYSFS/devices/system/cpu/present` 46 offline_cpus=`cat $SYSFS/devices/system/cpu/offline` 62 for cpu in $SYSFS/devices/system/cpu/cpu*; d [all...] |
/kernel/linux/linux-5.10/kernel/sched/ |
H A D | sched_avg.c | 43 int cpu; in sched_get_nr_running_avg() local 52 for_each_possible_cpu(cpu) { in sched_get_nr_running_avg() 56 spin_lock_irqsave(&per_cpu(nr_lock, cpu), flags); in sched_get_nr_running_avg() 58 diff = curr_time - per_cpu(last_time, cpu); in sched_get_nr_running_avg() 61 tmp_nr = per_cpu(nr_prod_sum, cpu); in sched_get_nr_running_avg() 62 tmp_nr += per_cpu(nr, cpu) * diff; in sched_get_nr_running_avg() 65 tmp_misfit = per_cpu(nr_big_prod_sum, cpu); in sched_get_nr_running_avg() 73 stats[cpu].nr = (int)div64_u64((tmp_nr + NR_THRESHOLD_PCT), in sched_get_nr_running_avg() 75 stats[cpu].nr_misfit = (int)div64_u64((tmp_misfit + in sched_get_nr_running_avg() 77 stats[cpu] in sched_get_nr_running_avg() 98 update_last_busy_time(int cpu, bool dequeue, unsigned long prev_nr_run, u64 curr_time) update_last_busy_time() argument 126 sched_update_nr_prod(int cpu, long delta, bool inc) sched_update_nr_prod() argument 157 sched_get_cpu_util(int cpu) sched_get_cpu_util() argument 183 sched_get_cpu_last_busy_time(int cpu) sched_get_cpu_last_busy_time() argument [all...] |
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | sched_avg.c | 43 int cpu; in sched_get_nr_running_avg() local 52 for_each_possible_cpu(cpu) { in sched_get_nr_running_avg() 56 spin_lock_irqsave(&per_cpu(nr_lock, cpu), flags); in sched_get_nr_running_avg() 58 diff = curr_time - per_cpu(last_time, cpu); in sched_get_nr_running_avg() 61 tmp_nr = per_cpu(nr_prod_sum, cpu); in sched_get_nr_running_avg() 62 tmp_nr += per_cpu(nr, cpu) * diff; in sched_get_nr_running_avg() 65 tmp_misfit = per_cpu(nr_big_prod_sum, cpu); in sched_get_nr_running_avg() 73 stats[cpu].nr = (int)div64_u64((tmp_nr + NR_THRESHOLD_PCT), in sched_get_nr_running_avg() 75 stats[cpu].nr_misfit = (int)div64_u64((tmp_misfit + in sched_get_nr_running_avg() 77 stats[cpu] in sched_get_nr_running_avg() 98 update_last_busy_time(int cpu, bool dequeue, unsigned long prev_nr_run, u64 curr_time) update_last_busy_time() argument 126 sched_update_nr_prod(int cpu, long delta, bool inc) sched_update_nr_prod() argument 157 sched_get_cpu_util(int cpu) sched_get_cpu_util() argument 183 sched_get_cpu_last_busy_time(int cpu) sched_get_cpu_last_busy_time() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | cpumask.h | 54 * cpu_possible_mask- has bit 'cpu' set iff cpu is populatable 55 * cpu_present_mask - has bit 'cpu' set iff cpu is populated 56 * cpu_online_mask - has bit 'cpu' set iff cpu available to scheduler 57 * cpu_active_mask - has bit 'cpu' set iff cpu available to migration 58 * cpu_isolated_mask- has bit 'cpu' set iff cpu isolate 156 cpu_max_bits_warn(unsigned int cpu, unsigned int bits) cpu_max_bits_warn() argument 164 cpumask_check(unsigned int cpu) cpumask_check() argument 208 cpumask_any_but(const struct cpumask *mask, unsigned int cpu) cpumask_any_but() argument 354 cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) cpumask_set_cpu() argument 359 __cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) __cpumask_set_cpu() argument 370 cpumask_clear_cpu(int cpu, struct cpumask *dstp) cpumask_clear_cpu() argument 375 __cpumask_clear_cpu(int cpu, struct cpumask *dstp) __cpumask_clear_cpu() argument 387 cpumask_test_cpu(int cpu, const struct cpumask *cpumask) cpumask_test_cpu() argument 401 cpumask_test_and_set_cpu(int cpu, struct cpumask *cpumask) cpumask_test_and_set_cpu() argument 415 cpumask_test_and_clear_cpu(int cpu, struct cpumask *cpumask) cpumask_test_and_clear_cpu() argument 851 set_cpu_possible(unsigned int cpu, bool possible) set_cpu_possible() argument 860 set_cpu_present(unsigned int cpu, bool present) set_cpu_present() argument 871 set_cpu_active(unsigned int cpu, bool active) set_cpu_active() argument 881 set_cpu_isolated(unsigned int cpu, bool isolated) set_cpu_isolated() argument 919 get_cpu_mask(unsigned int cpu) get_cpu_mask() argument [all...] |
/kernel/linux/linux-5.10/arch/microblaze/kernel/cpu/ |
H A D | cpuinfo-static.c | 23 void __init set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu) in set_cpuinfo_static() argument 28 (fcpu(cpu, "xlnx,use-barrel") ? PVR0_USE_BARREL_MASK : 0) | in set_cpuinfo_static() 29 (fcpu(cpu, "xlnx,use-msr-instr") ? PVR2_USE_MSR_INSTR : 0) | in set_cpuinfo_static() 30 (fcpu(cpu, "xlnx,use-pcmp-instr") ? PVR2_USE_PCMP_INSTR : 0) | in set_cpuinfo_static() 31 (fcpu(cpu, "xlnx,use-div") ? PVR0_USE_DIV_MASK : 0); in set_cpuinfo_static() 43 ci->use_mult = fcpu(cpu, "xlnx,use-hw-mul"); in set_cpuinfo_static() 51 ci->use_fpu = fcpu(cpu, "xlnx,use-fpu"); in set_cpuinfo_static() 59 (fcpu(cpu, "xlnx,unaligned-exceptions") ? in set_cpuinfo_static() 61 (fcpu(cpu, "xlnx,ill-opcode-exception") ? in set_cpuinfo_static() 63 (fcpu(cpu, "xln in set_cpuinfo_static() [all...] |
/kernel/linux/linux-6.6/arch/microblaze/kernel/cpu/ |
H A D | cpuinfo-static.c | 23 void __init set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu) in set_cpuinfo_static() argument 28 (fcpu(cpu, "xlnx,use-barrel") ? PVR0_USE_BARREL_MASK : 0) | in set_cpuinfo_static() 29 (fcpu(cpu, "xlnx,use-msr-instr") ? PVR2_USE_MSR_INSTR : 0) | in set_cpuinfo_static() 30 (fcpu(cpu, "xlnx,use-pcmp-instr") ? PVR2_USE_PCMP_INSTR : 0) | in set_cpuinfo_static() 31 (fcpu(cpu, "xlnx,use-div") ? PVR0_USE_DIV_MASK : 0); in set_cpuinfo_static() 43 ci->use_mult = fcpu(cpu, "xlnx,use-hw-mul"); in set_cpuinfo_static() 51 ci->use_fpu = fcpu(cpu, "xlnx,use-fpu"); in set_cpuinfo_static() 59 (fcpu(cpu, "xlnx,unaligned-exceptions") ? in set_cpuinfo_static() 61 (fcpu(cpu, "xlnx,ill-opcode-exception") ? in set_cpuinfo_static() 63 (fcpu(cpu, "xln in set_cpuinfo_static() [all...] |
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | intel_pstate.c | 20 #include <linux/cpu.h> 105 * to account for cpu idle period 140 * Stores the per cpu model P state limits and current P state. 196 * @cpu: CPU number for this instance data 233 int cpu; member 343 static void intel_pstate_set_itmt_prio(int cpu) in intel_pstate_set_itmt_prio() argument 349 ret = cppc_get_perf_caps(cpu, &cppc_perf); in intel_pstate_set_itmt_prio() 358 sched_set_itmt_core_prio(cppc_perf.highest_perf, cpu); in intel_pstate_set_itmt_prio() 379 static int intel_pstate_get_cppc_guranteed(int cpu) in intel_pstate_get_cppc_guranteed() argument 384 ret = cppc_get_perf_caps(cpu, in intel_pstate_get_cppc_guranteed() 395 intel_pstate_set_itmt_prio(int cpu) intel_pstate_set_itmt_prio() argument 402 struct cpudata *cpu; intel_pstate_init_acpi_perf_limits() local 458 struct cpudata *cpu; intel_pstate_exit_perf_limits() local 482 intel_pstate_get_cppc_guranteed(int cpu) intel_pstate_get_cppc_guranteed() argument 491 struct cpudata *cpu; update_turbo_state() local 502 struct cpudata *cpu = all_cpu_data[0]; min_perf_pct_min() local 548 intel_pstate_set_epb(int cpu, s16 pref) intel_pstate_set_epb() argument 630 intel_pstate_set_epp(struct cpudata *cpu, u32 epp) intel_pstate_set_epp() argument 711 struct cpudata *cpu = all_cpu_data[policy->cpu]; store_energy_performance_preference() local 796 struct cpudata *cpu; show_base_frequency() local 820 intel_pstate_get_hwp_max(struct cpudata *cpu, int *phy_max, int *current_max) intel_pstate_get_hwp_max() argument 835 intel_pstate_hwp_set(unsigned int cpu) intel_pstate_hwp_set() argument 898 intel_pstate_hwp_offline(struct cpudata *cpu) intel_pstate_hwp_offline() argument 952 intel_pstate_hwp_reenable(struct cpudata *cpu) intel_pstate_hwp_reenable() argument 960 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_suspend() local 971 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_resume() local 997 int cpu; intel_pstate_update_policies() local 1003 intel_pstate_update_max_freq(unsigned int cpu) intel_pstate_update_max_freq() argument 1020 intel_pstate_update_limits(unsigned int cpu) intel_pstate_update_limits() argument 1080 struct cpudata *cpu; show_turbo_pct() local 1106 struct cpudata *cpu; show_num_pstates() local 1177 struct cpudata *cpu = all_cpu_data[0]; store_no_turbo() local 1201 struct cpudata *cpu = all_cpu_data[i]; update_qos_request() local 1686 intel_pstate_set_pstate(struct cpudata *cpu, int pstate) intel_pstate_set_pstate() argument 1699 intel_pstate_set_min_pstate(struct cpudata *cpu) intel_pstate_set_min_pstate() argument 1704 intel_pstate_max_within_limits(struct cpudata *cpu) intel_pstate_max_within_limits() argument 1712 intel_pstate_get_cpu_pstates(struct cpudata *cpu) intel_pstate_get_cpu_pstates() argument 1749 intel_pstate_hwp_boost_up(struct cpudata *cpu) intel_pstate_hwp_boost_up() argument 1795 intel_pstate_hwp_boost_down(struct cpudata *cpu) intel_pstate_hwp_boost_down() argument 1811 intel_pstate_update_util_hwp_local(struct cpudata *cpu, u64 time) intel_pstate_update_util_hwp_local() argument 1843 struct cpudata *cpu = container_of(data, struct cpudata, update_util); intel_pstate_update_util_hwp() local 1851 intel_pstate_calc_avg_perf(struct cpudata *cpu) intel_pstate_calc_avg_perf() argument 1858 intel_pstate_sample(struct cpudata *cpu, u64 time) intel_pstate_sample() argument 1900 get_avg_frequency(struct cpudata *cpu) get_avg_frequency() argument 1905 get_avg_pstate(struct cpudata *cpu) get_avg_pstate() argument 1911 get_target_pstate(struct cpudata *cpu) get_target_pstate() argument 1946 intel_pstate_prepare_request(struct cpudata *cpu, int pstate) intel_pstate_prepare_request() argument 1954 intel_pstate_update_pstate(struct cpudata *cpu, int pstate) intel_pstate_update_pstate() argument 1963 intel_pstate_adjust_pstate(struct cpudata *cpu) intel_pstate_adjust_pstate() argument 1991 struct cpudata *cpu = container_of(data, struct cpudata, update_util); intel_pstate_update_util() local 2115 struct cpudata *cpu; intel_pstate_init_cpu() local 2160 struct cpudata *cpu = all_cpu_data[cpu_num]; intel_pstate_set_update_util_hook() local 2177 intel_pstate_clear_update_util_hook(unsigned int cpu) intel_pstate_clear_update_util_hook() argument 2189 intel_pstate_get_max_freq(struct cpudata *cpu) intel_pstate_get_max_freq() argument 2195 intel_pstate_update_perf_limits(struct cpudata *cpu, unsigned int policy_min, unsigned int policy_max) intel_pstate_update_perf_limits() argument 2261 struct cpudata *cpu; intel_pstate_set_policy() local 2303 intel_pstate_adjust_policy_max(struct cpudata *cpu, struct cpufreq_policy_data *policy) intel_pstate_adjust_policy_max() argument 2315 intel_pstate_verify_cpu_policy(struct cpudata *cpu, struct cpufreq_policy_data *policy) intel_pstate_verify_cpu_policy() argument 2343 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_cpu_offline() local 2368 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_cpu_online() local 2404 struct cpudata *cpu; __intel_pstate_cpu_init() local 2457 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_cpu_init() local 2482 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_verify_policy() local 2506 intel_cpufreq_trace(struct cpudata *cpu, unsigned int trace_type, int old_pstate) intel_cpufreq_trace() argument 2528 intel_cpufreq_adjust_hwp(struct cpudata *cpu, u32 target_pstate, bool strict, bool fast_switch) intel_cpufreq_adjust_hwp() argument 2553 intel_cpufreq_adjust_perf_ctl(struct cpudata *cpu, u32 target_pstate, bool fast_switch) intel_cpufreq_adjust_perf_ctl() argument 2567 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_update_pstate() local 2590 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_target() local 2625 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_fast_switch() local 2641 struct cpudata *cpu; intel_cpufreq_cpu_init() local 2742 unsigned int cpu; intel_pstate_driver_cleanup() local [all...] |
/kernel/linux/linux-5.10/arch/arc/kernel/ |
H A D | setup.c | 15 #include <linux/cpu.h> 70 static void read_decode_ccm_bcr(struct cpuinfo_arc *cpu) in read_decode_ccm_bcr() argument 78 cpu->iccm.sz = 4096 << iccm.sz; /* 8K to 512K */ in read_decode_ccm_bcr() 79 cpu->iccm.base_addr = iccm.base << 16; in read_decode_ccm_bcr() 85 cpu->dccm.sz = 2048 << dccm.sz; /* 2K to 256K */ in read_decode_ccm_bcr() 88 cpu->dccm.base_addr = base & ~0xF; in read_decode_ccm_bcr() 97 cpu->iccm.sz = 256 << iccm.sz00; /* 512B to 16M */ in read_decode_ccm_bcr() 99 cpu->iccm.sz <<= iccm.sz01; in read_decode_ccm_bcr() 102 cpu->iccm.base_addr = region & 0xF0000000; in read_decode_ccm_bcr() 107 cpu in read_decode_ccm_bcr() 117 decode_arc_core(struct cpuinfo_arc *cpu) decode_arc_core() argument 168 struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; read_arc_build_cfg_regs() local 268 struct cpuinfo_arc *cpu = &cpuinfo_arc700[cpu_id]; arc_cpu_mumbojumbo() local 341 struct cpuinfo_arc *cpu = &cpuinfo_arc700[cpu_id]; arc_extn_mumbojumbo() local 406 struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; arc_chk_core_config() local 693 int cpu; topology_init() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | smp.h | 34 extern int cpu_to_chip_id(int cpu); 44 void (*message_pass)(int cpu, int msg); 46 void (*cause_ipi)(int cpu); 48 int (*cause_nmi_ipi)(int cpu); 67 extern int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us); 68 extern int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us); 78 void generic_cpu_die(unsigned int cpu); 79 void generic_set_cpu_dead(unsigned int cpu); 80 void generic_set_cpu_up(unsigned int cpu); 81 int generic_check_cpu_restart(unsigned int cpu); 97 get_hard_smp_processor_id(int cpu) get_hard_smp_processor_id() argument 102 set_hard_smp_processor_id(int cpu, int phys) set_hard_smp_processor_id() argument 113 cpu_sibling_mask(int cpu) cpu_sibling_mask() argument 118 cpu_core_mask(int cpu) cpu_core_mask() argument 123 cpu_l2_cache_mask(int cpu) cpu_l2_cache_mask() argument 128 cpu_smallcore_mask(int cpu) cpu_smallcore_mask() argument 141 cpu_smt_mask(int cpu) cpu_smt_mask() argument 193 cpu_sibling_mask(int cpu) cpu_sibling_mask() argument 198 cpu_smallcore_mask(int cpu) cpu_smallcore_mask() argument 203 cpu_l2_cache_mask(int cpu) cpu_l2_cache_mask() argument 210 get_hard_smp_processor_id(int cpu) get_hard_smp_processor_id() argument 215 set_hard_smp_processor_id(int cpu, int phys) set_hard_smp_processor_id() argument 223 get_hard_smp_processor_id(int cpu) get_hard_smp_processor_id() argument 228 set_hard_smp_processor_id(int cpu, int phys) set_hard_smp_processor_id() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/cpu-hotplug/ |
H A D | cpu-on-off-test.sh | 27 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then 28 echo $msg cpu hotplug is not supported >&2 33 online_cpus=`cat $SYSFS/devices/system/cpu/online` 37 echo "$msg: since there is only one cpu: $online_cpus" 41 present_cpus=`cat $SYSFS/devices/system/cpu/present` 47 offline_cpus=`cat $SYSFS/devices/system/cpu/offline` 63 for cpu in $SYSFS/devices/system/cpu/cpu*; d [all...] |
/kernel/linux/linux-6.6/drivers/base/ |
H A D | cacheinfo.c | 5 * Based on arch/x86/kernel/cpu/intel_cacheinfo.c 14 #include <linux/cpu.h> 23 /* pointer to per cpu cacheinfo */ 25 #define ci_cacheinfo(cpu) (&per_cpu(ci_cpu_cacheinfo, cpu)) 26 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) 27 #define per_cpu_cacheinfo(cpu) (ci_cacheinfo(cpu)->info_list) 28 #define per_cpu_cacheinfo_idx(cpu, id 34 get_cpu_cacheinfo(unsigned int cpu) get_cpu_cacheinfo() argument 57 last_level_cache_is_valid(unsigned int cpu) last_level_cache_is_valid() argument 203 cache_setup_of_node(unsigned int cpu) cache_setup_of_node() argument 287 init_of_cache_level(unsigned int cpu) init_of_cache_level() argument 330 cache_setup_of_node(unsigned int cpu) cache_setup_of_node() argument 331 init_of_cache_level(unsigned int cpu) init_of_cache_level() argument 334 cache_setup_acpi(unsigned int cpu) cache_setup_acpi() argument 341 cache_setup_properties(unsigned int cpu) cache_setup_properties() argument 357 cache_shared_cpu_map_setup(unsigned int cpu) cache_shared_cpu_map_setup() argument 418 cache_shared_cpu_map_remove(unsigned int cpu) cache_shared_cpu_map_remove() argument 458 free_cache_attributes(unsigned int cpu) free_cache_attributes() argument 466 early_cache_level(unsigned int cpu) early_cache_level() argument 471 init_cache_level(unsigned int cpu) init_cache_level() argument 476 populate_cache_leaves(unsigned int cpu) populate_cache_leaves() argument 482 allocate_cache_info(int cpu) allocate_cache_info() argument 494 fetch_cache_info(unsigned int cpu) fetch_cache_info() argument 530 init_level_allocate_ci(unsigned int cpu) init_level_allocate_ci() argument 564 detect_cache_attributes(unsigned int cpu) detect_cache_attributes() argument 822 cpu_cache_sysfs_exit(unsigned int cpu) cpu_cache_sysfs_exit() argument 841 cpu_cache_sysfs_init(unsigned int cpu) cpu_cache_sysfs_init() argument 865 cache_add_dev(unsigned int cpu) cache_add_dev() argument 901 cacheinfo_cpu_online(unsigned int cpu) cacheinfo_cpu_online() argument 913 cacheinfo_cpu_pre_down(unsigned int cpu) cacheinfo_cpu_pre_down() argument [all...] |
H A D | arch_topology.c | 3 * Arch specific cpu topology information 11 #include <linux/cpu.h> 63 int cpu; in topology_set_scale_freq_source() local 74 for_each_cpu(cpu, cpus) { in topology_set_scale_freq_source() 75 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_set_scale_freq_source() 79 rcu_assign_pointer(per_cpu(sft_data, cpu), data); in topology_set_scale_freq_source() 80 cpumask_set_cpu(cpu, &scale_freq_counters_mask); in topology_set_scale_freq_source() 94 int cpu; in topology_clear_scale_freq_source() local 98 for_each_cpu(cpu, cpus) { in topology_clear_scale_freq_source() 99 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_clear_scale_freq_source() 156 topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) topology_set_cpu_scale() argument 182 int cpu; topology_update_thermal_pressure() local 213 struct cpu *cpu = container_of(dev, struct cpu, dev); cpu_capacity_show() local 226 struct device *cpu; register_cpu_capacity_sysctl() local 275 int cpu; topology_normalize_cpu_scale() local 297 topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) topology_parse_cpu_capacity() argument 354 int cpu; topology_init_cpu_capacity_cppc() local 399 int cpu; init_cpu_capacity_callback() local 482 int cpu; get_cpu_for_node() local 505 int cpu; parse_core() local 646 int cpu; parse_dt_topology() local 692 cpu_coregroup_mask(int cpu) cpu_coregroup_mask() argument 719 cpu_clustergroup_mask(int cpu) cpu_clustergroup_mask() argument 735 int cpu, ret; update_siblings_masks() local 772 clear_cpu_topology(int cpu) clear_cpu_topology() argument 790 unsigned int cpu; reset_cpu_topology() local 804 remove_cpu_topology(unsigned int cpu) remove_cpu_topology() argument 828 int cpu, ret; init_cpu_topology() local [all...] |
/kernel/linux/linux-6.6/arch/x86/xen/ |
H A D | smp.c | 3 #include <linux/cpu.h> 33 void xen_smp_intr_free(unsigned int cpu) in xen_smp_intr_free() argument 35 kfree(per_cpu(xen_resched_irq, cpu).name); in xen_smp_intr_free() 36 per_cpu(xen_resched_irq, cpu).name = NULL; in xen_smp_intr_free() 37 if (per_cpu(xen_resched_irq, cpu).irq >= 0) { in xen_smp_intr_free() 38 unbind_from_irqhandler(per_cpu(xen_resched_irq, cpu).irq, NULL); in xen_smp_intr_free() 39 per_cpu(xen_resched_irq, cpu).irq = -1; in xen_smp_intr_free() 41 kfree(per_cpu(xen_callfunc_irq, cpu).name); in xen_smp_intr_free() 42 per_cpu(xen_callfunc_irq, cpu).name = NULL; in xen_smp_intr_free() 43 if (per_cpu(xen_callfunc_irq, cpu) in xen_smp_intr_free() 62 xen_smp_intr_init(unsigned int cpu) xen_smp_intr_init() argument 142 xen_smp_send_reschedule(int cpu) xen_smp_send_reschedule() argument 150 unsigned cpu; __xen_send_IPI_mask() local 158 int cpu; xen_smp_send_call_function_ipi() local 171 xen_smp_send_call_function_single_ipi(int cpu) xen_smp_send_call_function_single_ipi() argument 237 unsigned cpu; xen_send_IPI_mask_allbutself() local [all...] |
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | topology.h | 41 /* Mappings between logical cpu number and node number */ 48 extern int __cpu_to_node(int cpu); 51 extern int early_cpu_to_node(int cpu); 56 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() argument 58 return early_per_cpu(x86_cpu_to_node_map, cpu); in early_cpu_to_node() 94 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() argument 105 extern const struct cpumask *cpu_coregroup_mask(int cpu); 106 extern const struct cpumask *cpu_clustergroup_mask(int cpu); 108 #define topology_logical_package_id(cpu) (cpu_data(cpu) 152 topology_is_primary_thread(unsigned int cpu) topology_is_primary_thread() argument 159 topology_update_package_map(unsigned int apicid, unsigned int cpu) topology_update_package_map() argument 161 topology_update_die_map(unsigned int dieid, unsigned int cpu) topology_update_die_map() argument 165 topology_is_primary_thread(unsigned int cpu) topology_is_primary_thread() argument 217 arch_scale_freq_capacity(int cpu) arch_scale_freq_capacity() argument [all...] |
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | smp.c | 23 #include <linux/cpu.h> 40 #include <asm/cpu.h> 83 static void ipi_setup(int cpu); 86 static void ipi_teardown(int cpu); 87 static int op_cpu_kill(unsigned int cpu); 89 static inline int op_cpu_kill(unsigned int cpu) in op_cpu_kill() argument 100 static int boot_secondary(unsigned int cpu, struct task_struct *idle) in boot_secondary() argument 102 const struct cpu_operations *ops = get_cpu_ops(cpu); in boot_secondary() 105 return ops->cpu_boot(cpu); in boot_secondary() 112 int __cpu_up(unsigned int cpu, struc argument 200 unsigned int cpu = smp_processor_id(); secondary_start_kernel() local 268 op_cpu_disable(unsigned int cpu) op_cpu_disable() argument 294 unsigned int cpu = smp_processor_id(); __cpu_disable() local 319 op_cpu_kill(unsigned int cpu) op_cpu_kill() argument 338 arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) arch_cpuhp_cleanup_dead_cpu() argument 361 unsigned int cpu = smp_processor_id(); cpu_die() local 382 __cpu_try_die(int cpu) __cpu_try_die() argument 398 int cpu = smp_processor_id(); cpu_die_early() local 470 is_mpidr_duplicate(unsigned int cpu, u64 hwid) is_mpidr_duplicate() argument 484 smp_cpu_setup(int cpu) smp_cpu_setup() argument 506 acpi_cpu_get_madt_gicc(int cpu) acpi_cpu_get_madt_gicc() argument 718 unsigned int cpu; smp_prepare_cpus() local 776 unsigned int cpu, i; arch_show_interrupts() local 795 arch_send_call_function_single_ipi(int cpu) arch_send_call_function_single_ipi() argument 837 ipi_cpu_crash_stop(unsigned int cpu, struct pt_regs *regs) ipi_cpu_crash_stop() argument 862 unsigned int cpu = smp_processor_id(); do_handle_IPI() local 929 ipi_setup(int cpu) ipi_setup() argument 941 ipi_teardown(int cpu) ipi_teardown() argument 977 arch_smp_send_reschedule(int cpu) arch_smp_send_reschedule() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | smp.c | 29 #include <linux/cpu.h> 152 * Returns 1 if the specified cpu should be brought up during boot. 286 void smp_muxed_ipi_set_message(int cpu, int msg) in smp_muxed_ipi_set_message() argument 288 struct cpu_messages *info = &per_cpu(ipi_message, cpu); in smp_muxed_ipi_set_message() 298 void smp_muxed_ipi_message_pass(int cpu, int msg) in smp_muxed_ipi_message_pass() argument 300 smp_muxed_ipi_set_message(cpu, msg); in smp_muxed_ipi_message_pass() 306 smp_ops->cause_ipi(cpu); in smp_muxed_ipi_message_pass() 360 static inline void do_message_pass(int cpu, int msg) in do_message_pass() argument 363 smp_ops->message_pass(cpu, msg); in do_message_pass() 366 smp_muxed_ipi_message_pass(cpu, ms in do_message_pass() 370 arch_smp_send_reschedule(int cpu) arch_smp_send_reschedule() argument 377 arch_send_call_function_single_ipi(int cpu) arch_send_call_function_single_ipi() argument 384 unsigned int cpu; arch_send_call_function_ipi_mask() local 478 do_smp_send_nmi_ipi(int cpu, bool safe) do_smp_send_nmi_ipi() argument 502 __smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us, bool safe) __smp_send_nmi_ipi() argument 567 smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) smp_send_nmi_ipi() argument 572 smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) smp_send_safe_nmi_ipi() argument 581 unsigned int cpu; tick_broadcast() local 603 int cpu; crash_send_ipi() local 875 get_cpu_thread_group_start(int cpu, struct thread_groups *tg) get_cpu_thread_group_start() argument 894 get_thread_groups(int cpu, int group_property, int *err) get_thread_groups() argument 929 update_mask_from_threadgroup(cpumask_var_t *mask, struct thread_groups *tg, int cpu, int cpu_group_start) update_mask_from_threadgroup() argument 952 init_thread_group_cache_map(int cpu, int cache_property) init_thread_group_cache_map() argument 1021 shared_cache_mask(int cpu) shared_cache_mask() argument 1027 smallcore_smt_mask(int cpu) smallcore_smt_mask() argument 1033 cpu_coregroup_mask(int cpu) cpu_coregroup_mask() argument 1043 cpu_mc_mask(int cpu) cpu_mc_mask() argument 1060 int cpu; init_big_cores() local 1091 unsigned int cpu, num_threads; smp_prepare_cpus() local 1180 unsigned int cpu = smp_processor_id(); generic_cpu_disable() local 1207 generic_cpu_die(unsigned int cpu) generic_cpu_die() argument 1220 generic_set_cpu_dead(unsigned int cpu) generic_set_cpu_dead() argument 1230 generic_set_cpu_up(unsigned int cpu) generic_set_cpu_up() argument 1235 generic_check_cpu_restart(unsigned int cpu) generic_check_cpu_restart() argument 1240 is_cpu_dead(unsigned int cpu) is_cpu_dead() argument 1256 cpu_idle_thread_init(unsigned int cpu, struct task_struct *idle) cpu_idle_thread_init() argument 1267 __cpu_up(unsigned int cpu, struct task_struct *tidle) __cpu_up() argument 1356 cpu_to_core_id(int cpu) cpu_to_core_id() argument 1373 cpu_core_index_of_thread(int cpu) cpu_core_index_of_thread() argument 1388 cpu_to_l2cache(int cpu) cpu_to_l2cache() argument 1407 update_mask_by_l2(int cpu, cpumask_var_t *mask) update_mask_by_l2() argument 1478 remove_cpu_from_masks(int cpu) remove_cpu_from_masks() argument 1505 add_cpu_to_smallcore_masks(int cpu) add_cpu_to_smallcore_masks() argument 1520 update_coregroup_mask(int cpu, cpumask_var_t *mask) update_coregroup_mask() argument 1556 add_cpu_to_masks(int cpu) add_cpu_to_masks() argument 1618 unsigned int cpu = raw_smp_processor_id(); start_secondary() local 1744 int cpu = smp_processor_id(); __cpu_disable() local 1762 __cpu_die(unsigned int cpu) __cpu_die() argument [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | smpboot.c | 5 #include <linux/cpu.h> 30 struct task_struct *idle_thread_get(unsigned int cpu) in idle_thread_get() argument 32 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_thread_get() 45 * idle_init - Initialize the idle thread for a cpu 46 * @cpu: The cpu for which the idle thread should be initialized 50 static inline void idle_init(unsigned int cpu) in idle_init() argument 52 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() 55 tsk = fork_idle(cpu); in idle_init() 57 pr_err("SMP: fork_idle() failed for CPU %u\n", cpu); in idle_init() 68 unsigned int cpu, boot_cpu; idle_threads_init() local 85 unsigned int cpu; global() member 170 __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu) __smpboot_create_thread() argument 213 smpboot_create_threads(unsigned int cpu) smpboot_create_threads() argument 228 smpboot_unpark_thread(struct smp_hotplug_thread *ht, unsigned int cpu) smpboot_unpark_thread() argument 236 smpboot_unpark_threads(unsigned int cpu) smpboot_unpark_threads() argument 247 smpboot_park_thread(struct smp_hotplug_thread *ht, unsigned int cpu) smpboot_park_thread() argument 255 smpboot_park_threads(unsigned int cpu) smpboot_park_threads() argument 268 unsigned int cpu; smpboot_destroy_threads() local 291 unsigned int cpu; smpboot_register_percpu_thread() local 335 cpu_report_state(int cpu) cpu_report_state() argument 352 cpu_check_up_prepare(int cpu) cpu_check_up_prepare() argument 408 cpu_set_state_online(int cpu) cpu_set_state_online() argument 418 cpu_wait_death(unsigned int cpu, int seconds) cpu_wait_death() argument 469 int cpu = smp_processor_id(); cpu_report_death() local [all...] |
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | smp.c | 12 #include <linux/cpu.h> 27 #include <asm/cpu.h> 54 * A logcal cpu mask containing only one VPE per core to 81 unsigned int cpu, i; in show_ipi_list() local 85 for_each_online_cpu(cpu) in show_ipi_list() 86 seq_printf(p, "%10u ", per_cpu(irq_stat, cpu).ipi_irqs[i]); in show_ipi_list() 91 static inline void set_cpu_core_map(int cpu) in set_cpu_core_map() argument 95 cpumask_set_cpu(cpu, &cpu_core_setup_map); in set_cpu_core_map() 98 if (cpu_data[cpu].package == cpu_data[i].package) { in set_cpu_core_map() 99 cpumask_set_cpu(i, &cpu_core_map[cpu]); in set_cpu_core_map() 105 set_cpu_sibling_map(int cpu) set_cpu_sibling_map() argument 119 clear_cpu_sibling_map(int cpu) clear_cpu_sibling_map() argument 159 csr_mail_send(uint64_t data, int cpu, int mailbox) csr_mail_send() argument 178 ipi_read_clear(int cpu) ipi_read_clear() argument 191 ipi_write_action(int cpu, u32 action) ipi_write_action() argument 205 loongson_send_ipi_single(int cpu, unsigned int action) loongson_send_ipi_single() argument 223 arch_smp_send_reschedule(int cpu) arch_smp_send_reschedule() argument 232 unsigned int cpu = smp_processor_id(); loongson_ipi_interrupt() local 252 unsigned int cpu, cpuid; fdt_smp_setup() local 311 loongson_boot_secondary(int cpu, struct task_struct *idle) loongson_boot_secondary() argument 331 unsigned int cpu = smp_processor_id(); loongson_init_secondary() local 361 unsigned int cpu = smp_processor_id(); loongson_cpu_disable() local 381 loongson_cpu_die(unsigned int cpu) loongson_cpu_die() argument 451 unsigned int cpu, node, rr_node; smp_prepare_boot_cpu() local 497 __cpu_up(unsigned int cpu, struct task_struct *tidle) __cpu_up() argument 520 unsigned int cpu; start_secondary() local 608 unsigned int cpu; flush_tlb_mm() local 647 unsigned int cpu; flush_tlb_range() local 693 unsigned int cpu; flush_tlb_page() local [all...] |
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/ |
H A D | isst-core.c | 9 int isst_write_pm_config(int cpu, int cp_state) in isst_write_pm_config() argument 19 ret = isst_send_mbox_command(cpu, WRITE_PM_CONFIG, PM_FEATURE, 0, req, in isst_write_pm_config() 24 debug_printf("cpu:%d WRITE_PM_CONFIG resp:%x\n", cpu, resp); in isst_write_pm_config() 29 int isst_read_pm_config(int cpu, int *cp_state, int *cp_cap) in isst_read_pm_config() argument 34 ret = isst_send_mbox_command(cpu, READ_PM_CONFIG, PM_FEATURE, 0, 0, in isst_read_pm_config() 39 debug_printf("cpu:%d READ_PM_CONFIG resp:%x\n", cpu, resp); in isst_read_pm_config() 47 int isst_get_ctdp_levels(int cpu, struct isst_pkg_ctdp *pkg_dev) in isst_get_ctdp_levels() argument 52 ret = isst_send_mbox_command(cpu, CONFIG_TD in isst_get_ctdp_levels() 74 isst_get_ctdp_control(int cpu, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level) isst_get_ctdp_control() argument 109 isst_get_tdp_info(int cpu, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level) isst_get_tdp_info() argument 132 isst_get_pwr_info(int cpu, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level) isst_get_pwr_info() argument 154 isst_get_uncore_p0_p1_info(int cpu, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level) isst_get_uncore_p0_p1_info() argument 176 isst_get_p1_info(int cpu, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level) isst_get_p1_info() argument 199 isst_get_uncore_mem_freq(int cpu, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level) isst_get_uncore_mem_freq() argument 217 isst_get_tjmax_info(int cpu, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level) isst_get_tjmax_info() argument 237 isst_get_coremask_info(int cpu, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level) isst_get_coremask_info() argument 271 isst_get_get_trl_from_msr(int cpu, int *trl) isst_get_get_trl_from_msr() argument 292 isst_get_get_trl(int cpu, int level, int avx_level, int *trl) isst_get_get_trl() argument 331 isst_get_trl_bucket_info(int cpu, unsigned long long *buckets_info) isst_get_trl_bucket_info() argument 349 isst_set_tdp_level_msr(int cpu, int tdp_level) isst_set_tdp_level_msr() argument 373 isst_set_tdp_level(int cpu, int tdp_level) isst_set_tdp_level() argument 395 isst_get_pbf_info(int cpu, int level, struct isst_pbf_info *pbf_info) isst_get_pbf_info() argument 490 isst_set_pbf_fact_status(int cpu, int pbf, int enable) isst_set_pbf_fact_status() argument 541 isst_get_fact_bucket_info(int cpu, int level, struct isst_fact_bucket_info *bucket_info) isst_get_fact_bucket_info() argument 606 isst_get_fact_info(int cpu, int level, int fact_bucket, struct isst_fact_info *fact_info) isst_get_fact_info() argument 668 isst_set_trl(int cpu, unsigned long long trl) isst_set_trl() argument 682 isst_set_trl_from_current_tdp(int cpu, unsigned long long trl) isst_set_trl_from_current_tdp() argument 717 isst_get_config_tdp_lock_status(int cpu) isst_get_config_tdp_lock_status() argument 731 isst_get_process_ctdp_complete(int cpu, struct isst_pkg_ctdp *pkg_dev) isst_get_process_ctdp_complete() argument 748 isst_get_process_ctdp(int cpu, int tdp_level, struct isst_pkg_ctdp *pkg_dev) isst_get_process_ctdp() argument 869 isst_clos_get_clos_information(int cpu, int *enable, int *type) isst_clos_get_clos_information() argument 894 isst_pm_qos_config(int cpu, int enable_clos, int priority_type) isst_pm_qos_config() argument 962 isst_pm_get_clos(int cpu, int clos, struct isst_clos_config *clos_config) isst_pm_get_clos() argument 984 isst_set_clos(int cpu, int clos, struct isst_clos_config *clos_config) isst_set_clos() argument 1008 isst_clos_get_assoc_status(int cpu, int *clos_id) isst_clos_get_assoc_status() argument 1029 isst_clos_associate(int cpu, int clos_id) isst_clos_associate() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | smp.h | 33 extern int cpu_to_chip_id(int cpu); 38 void (*message_pass)(int cpu, int msg); 40 void (*cause_ipi)(int cpu); 42 int (*cause_nmi_ipi)(int cpu); 58 extern int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us); 59 extern int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us); 69 void generic_cpu_die(unsigned int cpu); 70 void generic_set_cpu_dead(unsigned int cpu); 71 void generic_set_cpu_up(unsigned int cpu); 72 int generic_check_cpu_restart(unsigned int cpu); 103 get_hard_smp_processor_id(int cpu) get_hard_smp_processor_id() argument 108 set_hard_smp_processor_id(int cpu, int phys) set_hard_smp_processor_id() argument 119 cpu_sibling_mask(int cpu) cpu_sibling_mask() argument 124 cpu_core_mask(int cpu) cpu_core_mask() argument 129 cpu_l2_cache_mask(int cpu) cpu_l2_cache_mask() argument 134 cpu_smallcore_mask(int cpu) cpu_smallcore_mask() argument 145 cpu_smt_mask(int cpu) cpu_smt_mask() argument 197 cpu_sibling_mask(int cpu) cpu_sibling_mask() argument 202 cpu_smallcore_mask(int cpu) cpu_smallcore_mask() argument 210 get_hard_smp_processor_id(int cpu) get_hard_smp_processor_id() argument 215 set_hard_smp_processor_id(int cpu, int phys) set_hard_smp_processor_id() argument 223 get_hard_smp_processor_id(int cpu) get_hard_smp_processor_id() argument 228 set_hard_smp_processor_id(int cpu, int phys) set_hard_smp_processor_id() argument [all...] |