/linux-6.3-rc2/include/linux/ |
A D | topology.h | 94 static inline int cpu_to_node(int cpu) in cpu_to_node() 151 static inline int cpu_to_mem(int cpu) in cpu_to_mem() 175 static inline int cpu_to_mem(int cpu) in cpu_to_mem() 200 #define topology_die_id(cpu) ((void)(cpu), -1) argument 203 #define topology_cluster_id(cpu) ((void)(cpu), -1) argument 206 #define topology_core_id(cpu) ((void)(cpu), 0) argument 209 #define topology_book_id(cpu) ((void)(cpu), -1) argument 212 #define topology_drawer_id(cpu) ((void)(cpu), -1) argument 215 #define topology_ppin(cpu) ((void)(cpu), 0ull) argument 221 #define topology_core_cpumask(cpu) cpumask_of(cpu) argument [all …]
|
A D | cpumask.h | 281 #define for_each_cpu(cpu, mask) \ argument 315 #define for_each_cpu_wrap(cpu, mask, start) \ argument 332 #define for_each_cpu_and(cpu, mask1, mask2) \ argument 747 #define cpumask_of(cpu) (get_cpu_mask(cpu)) argument 982 set_cpu_present(unsigned int cpu, bool present) in set_cpu_present() 993 set_cpu_active(unsigned int cpu, bool active) in set_cpu_active() 1002 set_cpu_dying(unsigned int cpu, bool dying) in set_cpu_dying() 1063 static inline bool cpu_online(unsigned int cpu) in cpu_online() 1078 static inline bool cpu_active(unsigned int cpu) in cpu_active() 1083 static inline bool cpu_dying(unsigned int cpu) in cpu_dying() [all …]
|
A D | arch_topology.h | 23 static inline unsigned long topology_get_cpu_scale(int cpu) in topology_get_cpu_scale() 32 static inline unsigned long topology_get_freq_scale(int cpu) in topology_get_freq_scale() 58 static inline unsigned long topology_get_thermal_pressure(int cpu) in topology_get_thermal_pressure() 80 #define topology_physical_package_id(cpu) (cpu_topology[cpu].package_id) argument 81 #define topology_cluster_id(cpu) (cpu_topology[cpu].cluster_id) argument 82 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) argument 83 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) argument 84 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) argument 85 #define topology_cluster_cpumask(cpu) (&cpu_topology[cpu].cluster_sibling) argument 86 #define topology_llc_cpumask(cpu) (&cpu_topology[cpu].llc_sibling) argument
|
/linux-6.3-rc2/kernel/ |
A D | smpboot.c | 68 unsigned int cpu, boot_cpu; in idle_threads_init() local 85 unsigned int cpu; member 213 int smpboot_create_threads(unsigned int cpu) in smpboot_create_threads() 236 int smpboot_unpark_threads(unsigned int cpu) in smpboot_unpark_threads() 255 int smpboot_park_threads(unsigned int cpu) in smpboot_park_threads() 268 unsigned int cpu; in smpboot_destroy_threads() local 291 unsigned int cpu; in smpboot_register_percpu_thread() local 335 int cpu_report_state(int cpu) in cpu_report_state() 352 int cpu_check_up_prepare(int cpu) in cpu_check_up_prepare() 415 void cpu_set_state_online(int cpu) in cpu_set_state_online() [all …]
|
A D | cpu.c | 918 int cpu; in cpuhp_init_state() local 1270 unsigned int cpu; in smp_shutdown_nonboot_cpus() local 1507 unsigned int cpu; in bringup_nonboot_cpus() local 1588 int cpu, error; in thaw_secondary_cpus() local 1979 int cpu; in cpuhp_rollback_install() local 2000 int cpu; in __cpuhp_state_add_instance_cpuslocked() local 2076 int cpu, ret = 0; in __cpuhp_setup_state_cpuslocked() local 2149 int cpu; in __cpuhp_state_remove_instance() local 2196 int cpu; in __cpuhp_remove_state_cpuslocked() local 2260 int cpu, ret = 0; in cpuhp_smt_disable() local [all …]
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | topology.h | 56 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() 94 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() 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 113 #define topology_ppin(cpu) (cpu_data(cpu).ppin) argument 118 #define topology_cluster_id(cpu) (per_cpu(cpu_l2c_id, cpu)) argument 119 #define topology_die_cpumask(cpu) (per_cpu(cpu_die_map, cpu)) argument 120 #define topology_cluster_cpumask(cpu) (cpu_clustergroup_mask(cpu)) argument 121 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument 153 unsigned int cpu) { return 0; } in topology_phys_to_logical_die() [all …]
|
/linux-6.3-rc2/arch/powerpc/platforms/cell/ |
A D | pmu.c | 62 u32 cbe_read_phys_ctr(u32 cpu, u32 phys_ctr) in cbe_read_phys_ctr() 114 u32 cbe_read_ctr(u32 cpu, u32 ctr) in cbe_read_ctr() 128 void cbe_write_ctr(u32 cpu, u32 ctr, u32 val) in cbe_write_ctr() 153 u32 cbe_read_pm07_control(u32 cpu, u32 ctr) in cbe_read_pm07_control() 175 u32 cbe_read_pm(u32 cpu, enum pm_reg_name reg) in cbe_read_pm() 259 u32 cbe_get_ctr_size(u32 cpu, u32 phys_ctr) in cbe_get_ctr_size() 297 void cbe_enable_pm(u32 cpu) in cbe_enable_pm() 310 void cbe_disable_pm(u32 cpu) in cbe_disable_pm() 324 void cbe_read_trace_buffer(u32 cpu, u64 *buf) in cbe_read_trace_buffer() 337 u32 cbe_get_and_clear_pm_interrupts(u32 cpu) in cbe_get_and_clear_pm_interrupts() [all …]
|
/linux-6.3-rc2/tools/power/cpupower/utils/ |
A D | cpufreq-info.c | 58 unsigned int cpu, nr_cpus; in proc_cpufreq_output() local 126 static int get_boost_mode_x86(unsigned int cpu) in get_boost_mode_x86() 210 static int get_boost_mode(unsigned int cpu) in get_boost_mode() 297 static int get_driver(unsigned int cpu) in get_driver() 311 static int get_policy(unsigned int cpu) in get_policy() 333 static int get_available_governors(unsigned int cpu) in get_available_governors() 356 static int get_affected_cpus(unsigned int cpu) in get_affected_cpus() 377 static int get_related_cpus(unsigned int cpu) in get_related_cpus() 443 static int get_perf_cap(unsigned int cpu) in get_perf_cap() 452 static void debug_output_one(unsigned int cpu) in debug_output_one() [all …]
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | smp.c | 367 void smp_send_reschedule(int cpu) in smp_send_reschedule() 381 unsigned int cpu; in arch_send_call_function_ipi_mask() local 578 unsigned int cpu; in tick_broadcast() local 600 int cpu; in crash_send_ipi() local 1057 int cpu; in init_big_cores() local 1088 unsigned int cpu; in smp_prepare_cpus() local 1231 int is_cpu_dead(unsigned int cpu) in is_cpu_dead() 1347 int cpu_to_core_id(int cpu) in cpu_to_core_id() 1364 int cpu_core_index_of_thread(int cpu) in cpu_core_index_of_thread() 1731 int cpu = smp_processor_id(); in __cpu_disable() local [all …]
|
A D | watchdog.c | 148 int cpu = raw_smp_processor_id(); in wd_lockup_ipi() local 182 static bool set_cpu_stuck(int cpu) in set_cpu_stuck() 200 static void watchdog_smp_panic(int cpu) in watchdog_smp_panic() 263 static void wd_smp_clear_cpu_pending(int cpu) in wd_smp_clear_cpu_pending() 372 int cpu = raw_smp_processor_id(); in DEFINE_INTERRUPT_HANDLER_NMI() local 439 int cpu = smp_processor_id(); in watchdog_timer_fn() local 457 int cpu = smp_processor_id(); in arch_touch_nmi_watchdog() local 474 int cpu = smp_processor_id(); in start_watchdog() local 512 int cpu = smp_processor_id(); in stop_watchdog() local 551 int cpu; in watchdog_nmi_stop() local [all …]
|
/linux-6.3-rc2/arch/arm/mach-bcm/ |
A D | platsmp-brcmstb.c | 59 static int per_cpu_sw_state_rd(u32 cpu) in per_cpu_sw_state_rd() 65 static void per_cpu_sw_state_wr(u32 cpu, int val) in per_cpu_sw_state_wr() 72 static inline void per_cpu_sw_state_wr(u32 cpu, int val) { } in per_cpu_sw_state_wr() 75 static void __iomem *pwr_ctrl_get_base(u32 cpu) in pwr_ctrl_get_base() 82 static u32 pwr_ctrl_rd(u32 cpu) in pwr_ctrl_rd() 119 static void cpu_rst_cfg_set(u32 cpu, int set) in cpu_rst_cfg_set() 137 static void brcmstb_cpu_boot(u32 cpu) in brcmstb_cpu_boot() 152 static void brcmstb_cpu_power_on(u32 cpu) in brcmstb_cpu_power_on() 176 static int brcmstb_cpu_get_power_state(u32 cpu) in brcmstb_cpu_get_power_state() 184 static void brcmstb_cpu_die(u32 cpu) in brcmstb_cpu_die() [all …]
|
/linux-6.3-rc2/drivers/base/ |
A D | cacheinfo.c | 28 #define per_cpu_cacheinfo_idx(cpu, idx) \ argument 54 bool last_level_cache_is_valid(unsigned int cpu) in last_level_cache_is_valid() 197 static int cache_setup_of_node(unsigned int cpu) in cache_setup_of_node() 257 int init_of_cache_level(unsigned int cpu) in init_of_cache_level() 299 int __weak cache_setup_acpi(unsigned int cpu) in cache_setup_acpi() 401 int __weak init_cache_level(unsigned int cpu) in init_cache_level() 406 int __weak populate_cache_leaves(unsigned int cpu) in populate_cache_leaves() 412 int allocate_cache_info(int cpu) in allocate_cache_info() 424 int fetch_cache_info(unsigned int cpu) in fetch_cache_info() 455 int detect_cache_attributes(unsigned int cpu) in detect_cache_attributes() [all …]
|
A D | arch_topology.c | 63 int cpu; in topology_set_scale_freq_source() local 94 int cpu; in topology_clear_scale_freq_source() local 182 int cpu; in topology_update_thermal_pressure() local 275 int cpu; in topology_normalize_cpu_scale() local 354 int cpu; in topology_init_cpu_capacity_cppc() local 399 int cpu; in init_cpu_capacity_callback() local 482 int cpu; in get_cpu_for_node() local 505 int cpu; in parse_core() local 646 int cpu; in parse_dt_topology() local 735 int cpu, ret; in update_siblings_masks() local [all …]
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | topology.h | 48 static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) in update_numa_cpu_lookup_table() 53 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() 76 static inline int early_cpu_to_node(int cpu) { return 0; } in early_cpu_to_node() 105 static inline void map_cpu_to_node(int cpu, int node) {} in map_cpu_to_node() 107 static inline void unmap_cpu_from_node(unsigned long cpu) {} in unmap_cpu_from_node() 117 static inline void find_and_update_cpu_nid(int cpu) {} in find_and_update_cpu_nid() 118 static inline int cpu_to_coregroup_id(int cpu) in cpu_to_coregroup_id() 137 #define topology_physical_package_id(cpu) (cpu_to_chip_id(cpu)) argument 139 #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) argument 140 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument [all …]
|
A D | smp.h | 97 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() 102 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() 113 static inline struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() 118 static inline struct cpumask *cpu_core_mask(int cpu) in cpu_core_mask() 123 static inline struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() 128 static inline struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask() 141 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask() 193 static inline const struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() 203 static inline const struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() 210 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() [all …]
|
A D | paravirt.h | 30 static inline u64 paravirt_steal_clock(int cpu) in paravirt_steal_clock() 37 static inline u32 yield_count_of(int cpu) in yield_count_of() 59 static inline void yield_to_preempted(int cpu, u32 yield_count) in yield_to_preempted() 64 static inline void prod_cpu(int cpu) in prod_cpu() 79 static inline u32 yield_count_of(int cpu) in yield_count_of() 85 static inline void yield_to_preempted(int cpu, u32 yield_count) in yield_to_preempted() 97 static inline void prod_cpu(int cpu) in prod_cpu() 105 static inline bool vcpu_is_preempted(int cpu) in vcpu_is_preempted()
|
/linux-6.3-rc2/arch/arm/kernel/ |
A D | smp.c | 239 static void ipi_teardown(int cpu) in ipi_teardown() 255 unsigned int cpu = smp_processor_id(); in __cpu_disable() local 295 void __cpu_die(unsigned int cpu) in __cpu_die() 325 unsigned int cpu = smp_processor_id(); in arch_cpu_idle_dead() local 416 unsigned int cpu; in secondary_start_kernel() local 486 int cpu; in smp_cpus_done() local 551 unsigned int cpu, i; in show_ipi_list() local 638 unsigned int cpu = smp_processor_id(); in do_handle_IPI() local 715 static void ipi_setup(int cpu) in ipi_setup() 750 void smp_send_reschedule(int cpu) in smp_send_reschedule() [all …]
|
/linux-6.3-rc2/tools/power/cpupower/lib/ |
A D | cpufreq.c | 35 static unsigned int sysfs_cpufreq_write_file(unsigned int cpu, in sysfs_cpufreq_write_file() 135 static char *sysfs_cpufreq_get_one_string(unsigned int cpu, in sysfs_cpufreq_get_one_string() 177 static int sysfs_cpufreq_write_one_value(unsigned int cpu, in sysfs_cpufreq_write_one_value() 191 unsigned long cpufreq_get_freq_kernel(unsigned int cpu) in cpufreq_get_freq_kernel() 196 unsigned long cpufreq_get_freq_hardware(unsigned int cpu) in cpufreq_get_freq_hardware() 206 int cpufreq_get_hardware_limits(unsigned int cpu, in cpufreq_get_hardware_limits() 224 char *cpufreq_get_driver(unsigned int cpu) in cpufreq_get_driver() 271 int cpu) in cpufreq_get_available_governors() 345 *cpufreq_get_available_frequencies(unsigned int cpu) in cpufreq_get_available_frequencies() 401 *cpufreq_get_boost_frequencies(unsigned int cpu) in cpufreq_get_boost_frequencies() [all …]
|
/linux-6.3-rc2/arch/mips/loongson64/ |
A D | smp.c | 80 static u32 csr_ipi_read_clear(int cpu) in csr_ipi_read_clear() 105 static void csr_ipi_write_enable(int cpu) in csr_ipi_write_enable() 110 static void csr_ipi_clear_buf(int cpu) in csr_ipi_clear_buf() 134 static u32 legacy_ipi_read_clear(int cpu) in legacy_ipi_read_clear() 151 static void legacy_ipi_write_enable(int cpu) in legacy_ipi_write_enable() 156 static void legacy_ipi_clear_buf(int cpu) in legacy_ipi_clear_buf() 401 int i, cpu = smp_processor_id(); in loongson3_ipi_interrupt() local 435 unsigned int cpu = smp_processor_id(); in loongson3_init_secondary() local 469 int cpu = smp_processor_id(); in loongson3_smp_finish() local 548 unsigned int cpu = smp_processor_id(); in loongson3_cpu_disable() local [all …]
|
/linux-6.3-rc2/arch/s390/include/asm/ |
A D | topology.h | 29 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) argument 30 #define topology_thread_id(cpu) (cpu_topology[cpu].thread_id) argument 32 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) argument 33 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_mask) argument 34 #define topology_book_id(cpu) (cpu_topology[cpu].book_id) argument 35 #define topology_book_cpumask(cpu) (&cpu_topology[cpu].book_mask) argument 36 #define topology_drawer_id(cpu) (cpu_topology[cpu].drawer_id) argument 38 #define topology_cpu_dedicated(cpu) (cpu_topology[cpu].dedicated) argument 39 #define topology_booted_cores(cpu) (cpu_topology[cpu].booted_cores) argument 56 static inline int topology_cpu_init(struct cpu *cpu) { return 0; } in topology_cpu_init() [all …]
|
/linux-6.3-rc2/arch/arm64/kernel/ |
A D | smp.c | 201 unsigned int cpu = smp_processor_id(); in secondary_start_kernel() local 295 unsigned int cpu = smp_processor_id(); in __cpu_disable() local 339 void __cpu_die(unsigned int cpu) in __cpu_die() 366 unsigned int cpu = smp_processor_id(); in cpu_die() local 387 static void __cpu_try_die(int cpu) in __cpu_try_die() 403 int cpu = smp_processor_id(); in cpu_die_early() local 723 unsigned int cpu; in smp_prepare_cpus() local 781 unsigned int cpu, i; in arch_show_interrupts() local 932 static void ipi_setup(int cpu) in ipi_setup() 944 static void ipi_teardown(int cpu) in ipi_teardown() [all …]
|
/linux-6.3-rc2/arch/loongarch/kernel/ |
A D | smp.c | 83 unsigned int cpu, i; in show_ipi_list() local 113 static u32 ipi_read_clear(int cpu) in ipi_read_clear() 158 void smp_send_reschedule(int cpu) in smp_send_reschedule() 167 unsigned int cpu = smp_processor_id(); in loongson_ipi_interrupt() local 187 unsigned int cpu, cpuid; in fdt_smp_setup() local 262 unsigned int cpu = smp_processor_id(); in loongson_init_secondary() local 437 unsigned int cpu, node, rr_node; in smp_prepare_boot_cpu() local 506 unsigned int cpu; in start_secondary() local 592 unsigned int cpu; in flush_tlb_mm() local 631 unsigned int cpu; in flush_tlb_range() local [all …]
|
/linux-6.3-rc2/drivers/acpi/ |
A D | processor_thermal.c | 33 #define reduction_pctg(cpu) \ argument 43 static int phys_package_first_cpu(int cpu) in phys_package_first_cpu() 54 static int cpu_has_cpufreq(unsigned int cpu) in cpu_has_cpufreq() 69 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() 77 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() 85 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() 131 unsigned int cpu; in acpi_thermal_cpufreq_init() local 151 unsigned int cpu; in acpi_thermal_cpufreq_exit() local 161 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() 166 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() [all …]
|
/linux-6.3-rc2/kernel/time/ |
A D | tick-broadcast.c | 116 int cpu) in tick_set_oneshot_wakeup_device() 153 int cpu) in tick_set_oneshot_wakeup_device() 347 int cpu = smp_processor_id(); in tick_do_broadcast() local 441 int cpu, bc_stopped; in tick_broadcast_control() local 536 void tick_broadcast_offline(unsigned int cpu) in tick_broadcast_offline() 693 int cpu, next_cpu = 0; in tick_handle_oneshot_broadcast() local 797 int cpu) in ___tick_broadcast_oneshot_control() 935 int cpu) in tick_oneshot_wakeup_control() 965 int cpu = smp_processor_id(); in __tick_broadcast_oneshot_control() local 995 int cpu; in tick_broadcast_init_next_event() local [all …]
|
/linux-6.3-rc2/arch/powerpc/sysdev/ |
A D | fsl_rcpm.c | 27 static void rcpm_v1_irq_mask(int cpu) in rcpm_v1_irq_mask() 38 static void rcpm_v2_irq_mask(int cpu) in rcpm_v2_irq_mask() 49 static void rcpm_v1_irq_unmask(int cpu) in rcpm_v1_irq_unmask() 60 static void rcpm_v2_irq_unmask(int cpu) in rcpm_v2_irq_unmask() 87 static void rcpm_v1_cpu_enter_state(int cpu, int state) in rcpm_v1_cpu_enter_state() 105 static void rcpm_v2_cpu_enter_state(int cpu, int state) in rcpm_v2_cpu_enter_state() 129 static void rcpm_v1_cpu_die(int cpu) in rcpm_v1_cpu_die() 135 static void qoriq_disable_thread(int cpu) in qoriq_disable_thread() 143 static void rcpm_v2_cpu_die(int cpu) in rcpm_v2_cpu_die() 182 static void rcpm_v1_cpu_up_prepare(int cpu) in rcpm_v1_cpu_up_prepare() [all …]
|