Home
last modified time | relevance | path

Searched defs:cpu (Results 1 – 25 of 1733) sorted by relevance

12345678910>>...70

/linux/include/linux/
H A Dtopology.h94 static inline int cpu_to_node(int cpu) in cpu_to_node()
108 static inline void set_cpu_numa_node(int cpu, int node) in set_cpu_numa_node()
151 static inline int cpu_to_mem(int cpu) in cpu_to_mem()
158 static inline void set_cpu_numa_mem(int cpu, int node) in set_cpu_numa_mem()
175 static inline int cpu_to_mem(int cpu) in cpu_to_mem()
197 #define topology_physical_package_id(cpu) ((void)(cpu), -1) argument
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
[all …]
H A Dcpumask.h132 static __always_inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits) in cpu_max_bits_warn()
140 static __always_inline unsigned int cpumask_check(unsigned int cpu) in cpumask_check()
294 #define for_each_cpu(cpu, mask) \ argument
328 #define for_each_cpu_wrap(cpu, mask, start) \ argument
345 #define for_each_cpu_and(cpu, mask1, mask2) \ argument
363 #define for_each_cpu_andnot(cpu, mask1, mask2) \ argument
380 #define for_each_cpu_or(cpu, mask1, mask2) \ argument
390 #define for_each_cpu_from(cpu, mask) \ argument
402 unsigned int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) in cpumask_any_but()
422 unsigned int cpumask_any_and_but(const struct cpumask *mask1, in cpumask_any_and_but()
[all …]
/linux/arch/powerpc/include/asm/
H A Dtopology.h48 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()
90 static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) {} in update_numa_cpu_lookup_table()
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
[all …]
H A Dsmp.h98 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id()
103 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id()
114 static inline struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask()
119 static inline struct cpumask *cpu_core_mask(int cpu) in cpu_core_mask()
124 static inline struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask()
129 static inline struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask()
142 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask()
194 static inline const struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask()
199 static inline const struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask()
204 static inline const struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask()
[all …]
/linux/drivers/base/
H A Dcacheinfo.c25 #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
28 #define per_cpu_cacheinfo_idx(cpu, idx) \ argument
34 struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu) in get_cpu_cacheinfo()
57 bool last_level_cache_is_valid(unsigned int cpu) in last_level_cache_is_valid()
203 static int cache_setup_of_node(unsigned int cpu) in cache_setup_of_node()
277 int init_of_cache_level(unsigned int cpu) in init_of_cache_level()
315 static inline int cache_setup_of_node(unsigned int cpu) { return 0; } in cache_setup_of_node()
316 int init_of_cache_level(unsigned int cpu) { return 0; } in init_of_cache_level()
[all …]
H A Darch_topology.c66 int cpu; in topology_set_scale_freq_source() local
97 int cpu; in topology_clear_scale_freq_source() local
159 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) in topology_set_cpu_scale()
185 int cpu; in topology_update_hw_pressure() local
213 struct cpu *cpu = container_of(dev, struct cpu, dev); in cpu_capacity_show() local
223 static int cpu_capacity_sysctl_add(unsigned int cpu) in cpu_capacity_sysctl_add()
235 static int cpu_capacity_sysctl_remove(unsigned int cpu) in cpu_capacity_sysctl_remove()
289 int cpu; in topology_normalize_cpu_scale() local
311 bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) in topology_parse_cpu_capacity()
362 void __weak freq_inv_set_max_ratio(int cpu, u64 max_rate) in freq_inv_set_max_ratio()
[all …]
/linux/arch/powerpc/kernel/
H A Dsmp.c278 void smp_muxed_ipi_set_message(int cpu, int msg) in smp_muxed_ipi_set_message()
290 void smp_muxed_ipi_message_pass(int cpu, int msg) in smp_muxed_ipi_message_pass()
352 static inline void do_message_pass(int cpu, int msg) in do_message_pass()
362 void arch_smp_send_reschedule(int cpu) in arch_smp_send_reschedule()
369 void arch_send_call_function_single_ipi(int cpu) in arch_send_call_function_single_ipi()
376 unsigned int cpu; in arch_send_call_function_ipi_mask() local
470 static void do_smp_send_nmi_ipi(int cpu, bool safe) in do_smp_send_nmi_ipi()
494 static int __smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), in __smp_send_nmi_ipi()
559 int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) in smp_send_nmi_ipi()
564 int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) in smp_send_safe_nmi_ipi()
[all …]
H A Dwatchdog.c148 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()
346 static void watchdog_timer_interrupt(int cpu) in watchdog_timer_interrupt()
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
504 static int start_watchdog_on_cpu(unsigned int cpu) in start_watchdog_on_cpu()
[all …]
/linux/arch/powerpc/platforms/cell/
H A Dpmu.c62 u32 cbe_read_phys_ctr(u32 cpu, u32 phys_ctr) in cbe_read_phys_ctr()
81 void cbe_write_phys_ctr(u32 cpu, u32 phys_ctr, u32 val) in cbe_write_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()
164 void cbe_write_pm07_control(u32 cpu, u32 ctr, u32 val) in cbe_write_pm07_control()
175 u32 cbe_read_pm(u32 cpu, enum pm_reg_name reg) in cbe_read_pm()
217 void cbe_write_pm(u32 cpu, enum pm_reg_name reg, u32 val) in cbe_write_pm()
259 u32 cbe_get_ctr_size(u32 cpu, u32 phys_ctr) in cbe_get_ctr_size()
272 void cbe_set_ctr_size(u32 cpu, u32 phys_ctr, u32 ctr_size) in cbe_set_ctr_size()
[all …]
/linux/tools/power/cpupower/utils/
H A Dcpufreq-info.c58 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()
237 static int get_freq_kernel(unsigned int cpu, unsigned int human) in get_freq_kernel()
256 static int get_freq_hardware(unsigned int cpu, unsigned int human) in get_freq_hardware()
274 static int get_hardware_limits(unsigned int cpu, unsigned int human) in get_hardware_limits()
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()
[all …]
/linux/arch/arm64/kernel/
H A Dsmp.c96 static inline int op_cpu_kill(unsigned int cpu) in op_cpu_kill()
107 static int boot_secondary(unsigned int cpu, struct task_struct *idle) in boot_secondary()
119 int __cpu_up(unsigned int cpu, struct task_struct *idle) in __cpu_up()
208 unsigned int cpu = smp_processor_id(); in secondary_start_kernel() local
283 static int op_cpu_disable(unsigned int cpu) in op_cpu_disable()
309 unsigned int cpu = smp_processor_id(); in __cpu_disable() local
334 static int op_cpu_kill(unsigned int cpu) in op_cpu_kill()
353 void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) in arch_cpuhp_cleanup_dead_cpu()
376 unsigned int cpu = smp_processor_id(); in cpu_die() local
397 static void __cpu_try_die(int cpu) in __cpu_try_die()
[all …]
/linux/arch/arm/mach-bcm/
H A Dplatsmp-brcmstb.c59 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()
88 static void pwr_ctrl_set(unsigned int cpu, u32 val, u32 mask) in pwr_ctrl_set()
94 static void pwr_ctrl_clr(unsigned int cpu, u32 val, u32 mask) in pwr_ctrl_clr()
101 static int pwr_ctrl_wait_tmout(unsigned int cpu, u32 set, u32 mask) in pwr_ctrl_wait_tmout()
119 static void cpu_rst_cfg_set(u32 cpu, int set) in cpu_rst_cfg_set()
130 static void cpu_set_boot_addr(u32 cpu, unsigned long boot_addr) in cpu_set_boot_addr()
[all …]
/linux/arch/mips/loongson64/
H A Dsmp.c44 static void csr_mail_send(uint64_t data, int cpu, int mailbox) in csr_mail_send()
63 static u32 csr_ipi_read_clear(int cpu) in csr_ipi_read_clear()
75 static void csr_ipi_write_action(int cpu, u32 action) in csr_ipi_write_action()
88 static void csr_ipi_write_enable(int cpu) in csr_ipi_write_enable()
93 static void csr_ipi_clear_buf(int cpu) in csr_ipi_clear_buf()
98 static void csr_ipi_write_buf(int cpu, struct task_struct *idle) in csr_ipi_write_buf()
117 static u32 legacy_ipi_read_clear(int cpu) in legacy_ipi_read_clear()
130 static void legacy_ipi_write_action(int cpu, u32 action) in legacy_ipi_write_action()
136 static void legacy_ipi_write_enable(int cpu) in legacy_ipi_write_enable()
141 static void legacy_ipi_clear_buf(int cpu) in legacy_ipi_clear_buf()
[all …]
/linux/arch/arm/kernel/
H A Dsmp.c108 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare()
121 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare()
131 int __cpu_up(unsigned int cpu, struct task_struct *idle) in __cpu_up()
206 static int platform_cpu_kill(unsigned int cpu) in platform_cpu_kill()
213 static int platform_cpu_disable(unsigned int cpu) in platform_cpu_disable()
221 int platform_can_hotplug_cpu(unsigned int cpu) in platform_can_hotplug_cpu()
238 static void ipi_teardown(int cpu) in ipi_teardown()
254 unsigned int cpu = smp_processor_id(); in __cpu_disable() local
294 void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) in arch_cpuhp_cleanup_dead_cpu()
320 unsigned int cpu = smp_processor_id(); in arch_cpu_idle_dead() local
[all …]
/linux/tools/power/cpupower/lib/
H A Dcpufreq.c23 static unsigned int sysfs_cpufreq_read_file(unsigned int cpu, const char *fname, in sysfs_cpufreq_read_file()
35 static unsigned int sysfs_cpufreq_write_file(unsigned int cpu, in sysfs_cpufreq_write_file()
86 unsigned long cpufreq_get_sysfs_value_from_table(unsigned int cpu, in cpufreq_get_sysfs_value_from_table()
113 static unsigned long sysfs_cpufreq_get_one_value(unsigned int cpu, in sysfs_cpufreq_get_one_value()
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()
201 unsigned long cpufreq_get_transition_latency(unsigned int cpu) in cpufreq_get_transition_latency()
206 int cpufreq_get_hardware_limits(unsigned int cpu, in cpufreq_get_hardware_limits()
[all …]
/linux/arch/s390/kernel/
H A Dsmp.c173 int cpu; in pcpu_find_address() local
192 static int pcpu_alloc_lowcore(struct pcpu *pcpu, int cpu) in pcpu_alloc_lowcore()
232 static void pcpu_free_lowcore(struct pcpu *pcpu, int cpu) in pcpu_free_lowcore()
251 static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu) in pcpu_prepare_secondary()
278 static void pcpu_attach_task(int cpu, struct task_struct *tsk) in pcpu_attach_task()
295 static void pcpu_start_fn(int cpu, void (*func)(void *), void *data) in pcpu_start_fn()
317 static void pcpu_delegate(struct pcpu *pcpu, int cpu, in pcpu_delegate()
394 int cpu; in smp_find_processor_id() local
407 bool notrace arch_vcpu_is_preempted(int cpu) in arch_vcpu_is_preempted()
417 void notrace smp_yield_cpu(int cpu) in smp_yield_cpu()
[all …]
/linux/arch/x86/include/asm/
H A Dtopology.h56 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()
143 #define topology_logical_package_id(cpu) (cpu_data(cpu).topo.logical_pkg_id) argument
144 #define topology_physical_package_id(cpu) (cpu_data(cpu).topo.pkg_id) argument
145 #define topology_logical_die_id(cpu) (cpu_data(cpu).topo.logical_die_id) argument
146 #define topology_die_id(cpu) (cpu_data(cpu).topo.die_id) argument
147 #define topology_core_id(cpu) (cpu_data(cpu).topo.core_id) argument
148 #define topology_ppin(cpu) (cpu_data(cpu).ppin) argument
150 #define topology_amd_node_id(cpu) (cpu_data(cpu).topo.amd_node_id) argument
191 #define topology_cluster_id(cpu) (cpu_data(cpu).topo.l2c_id) argument
[all …]
/linux/kernel/
H A Dsmpboot.c30 struct task_struct *idle_thread_get(unsigned int cpu) in idle_thread_get()
50 static __always_inline void idle_init(unsigned int cpu) in idle_init()
68 unsigned int cpu, boot_cpu; in idle_threads_init() local
85 unsigned int cpu; member
170 __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in __smpboot_create_thread()
213 int smpboot_create_threads(unsigned int cpu) in smpboot_create_threads()
228 static void smpboot_unpark_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_unpark_thread()
236 int smpboot_unpark_threads(unsigned int cpu) in smpboot_unpark_threads()
247 static void smpboot_park_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_park_thread()
255 int smpboot_park_threads(unsigned int cpu) in smpboot_park_threads()
[all …]
H A Dcpu.c169 cpuhp_invoke_callback(unsigned int cpu,enum cpuhp_state state,bool bringup,struct hlist_node * node,struct hlist_node ** lastp) cpuhp_invoke_callback() argument
308 cpuhp_wait_for_sync_state(unsigned int cpu,enum cpuhp_sync_state state,enum cpuhp_sync_state next_state) cpuhp_wait_for_sync_state() argument
354 arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) arch_cpuhp_cleanup_dead_cpu() argument
360 cpuhp_bp_sync_dead(unsigned int cpu) cpuhp_bp_sync_dead() argument
381 cpuhp_bp_sync_dead(unsigned int cpu) cpuhp_bp_sync_dead() argument
402 cpuhp_can_boot_ap(unsigned int cpu) cpuhp_can_boot_ap() argument
430 arch_cpuhp_cleanup_kick_cpu(unsigned int cpu) arch_cpuhp_cleanup_kick_cpu() argument
436 cpuhp_bp_sync_alive(unsigned int cpu) cpuhp_bp_sync_alive() argument
453 cpuhp_bp_sync_alive(unsigned int cpu) cpuhp_bp_sync_alive() argument
454 cpuhp_can_boot_ap(unsigned int cpu) cpuhp_can_boot_ap() argument
662 cpu_smt_thread_allowed(unsigned int cpu) cpu_smt_thread_allowed() argument
671 cpu_bootable(unsigned int cpu) cpu_bootable() argument
705 cpu_bootable(unsigned int cpu) cpu_bootable() argument
709 cpuhp_set_state(int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_set_state() argument
727 cpuhp_reset_state(int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state prev_state) cpuhp_reset_state() argument
776 cpuhp_kick_ap(int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_kick_ap() argument
792 bringup_wait_for_ap_online(unsigned int cpu) bringup_wait_for_ap_online() argument
817 cpuhp_kick_ap_alive(unsigned int cpu) cpuhp_kick_ap_alive() argument
825 cpuhp_bringup_ap(unsigned int cpu) cpuhp_bringup_ap() argument
857 bringup_cpu(unsigned int cpu) bringup_cpu() argument
902 finish_cpu(unsigned int cpu) finish_cpu() argument
954 __cpuhp_invoke_callback_range(bool bringup,unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target,bool nofail) __cpuhp_invoke_callback_range() argument
985 cpuhp_invoke_callback_range(bool bringup,unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_invoke_callback_range() argument
993 cpuhp_invoke_callback_range_nofail(bool bringup,unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_invoke_callback_range_nofail() argument
1014 cpuhp_up_callbacks(unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_up_callbacks() argument
1037 cpuhp_should_run(unsigned int cpu) cpuhp_should_run() argument
1058 cpuhp_thread_fun(unsigned int cpu) cpuhp_thread_fun() argument
1125 cpuhp_invoke_ap_callback(int cpu,enum cpuhp_state state,bool bringup,struct hlist_node * node) cpuhp_invoke_ap_callback() argument
1175 cpuhp_kick_ap_work(unsigned int cpu) cpuhp_kick_ap_work() argument
1205 int cpu; cpuhp_init_state() local
1223 arch_clear_mm_cpumask_cpu(cpu,mm) global() argument
1238 clear_tasks_mm_cpumask(int cpu) clear_tasks_mm_cpumask() argument
1272 int err, cpu = smp_processor_id(); take_cpu_down() local
1295 takedown_cpu(unsigned int cpu) takedown_cpu() argument
1376 cpuhp_down_callbacks(unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_down_callbacks() argument
1399 _cpu_down(unsigned int cpu,int tasks_frozen,enum cpuhp_state target) _cpu_down() argument
1465 unsigned int cpu; global() member
1476 cpu_down_maps_locked(unsigned int cpu,enum cpuhp_state target) cpu_down_maps_locked() argument
1502 cpu_down(unsigned int cpu,enum cpuhp_state target) cpu_down() argument
1527 remove_cpu(unsigned int cpu) remove_cpu() argument
1541 unsigned int cpu; smp_shutdown_nonboot_cpus() local
1592 notify_cpu_starting(unsigned int cpu) notify_cpu_starting() argument
1632 _cpu_up(unsigned int cpu,int tasks_frozen,enum cpuhp_state target) _cpu_up() argument
1697 cpu_up(unsigned int cpu,enum cpuhp_state target) cpu_up() argument
1743 add_cpu(unsigned int cpu) add_cpu() argument
1783 unsigned int cpu; cpuhp_bringup_mask() local
1904 int cpu, error = 0; freeze_secondary_cpus() local
1970 int cpu, error; thaw_secondary_cpus() local
2310 cpuhp_store_callbacks(enum cpuhp_state state,const char * name,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) cpuhp_store_callbacks() argument
2311 cpuhp_store_callbacks(enum cpuhp_state state,const char * name,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) cpuhp_store_callbacks() argument
2355 cpuhp_issue_call(int cpu,enum cpuhp_state state,bool bringup,struct hlist_node * node) cpuhp_issue_call() argument
2391 int cpu; cpuhp_rollback_install() local
2412 int cpu; __cpuhp_state_add_instance_cpuslocked() local
2484 __cpuhp_setup_state_cpuslocked(enum cpuhp_state state,const char * name,bool invoke,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) __cpuhp_setup_state_cpuslocked() argument
2485 __cpuhp_setup_state_cpuslocked(enum cpuhp_state state,const char * name,bool invoke,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) __cpuhp_setup_state_cpuslocked() argument
2488 int cpu, ret = 0; __cpuhp_setup_state_cpuslocked() local
2543 __cpuhp_setup_state(enum cpuhp_state state,const char * name,bool invoke,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) __cpuhp_setup_state() argument
2544 __cpuhp_setup_state(enum cpuhp_state state,const char * name,bool invoke,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) __cpuhp_setup_state() argument
2561 int cpu; __cpuhp_state_remove_instance() local
2608 int cpu; __cpuhp_remove_state_cpuslocked() local
2652 cpuhp_offline_cpu_device(unsigned int cpu) cpuhp_offline_cpu_device() argument
2661 cpuhp_online_cpu_device(unsigned int cpu) cpuhp_online_cpu_device() argument
2672 int cpu, ret = 0; cpuhp_smt_disable() local
2710 topology_is_core_online(unsigned int cpu) topology_is_core_online() argument
2718 int cpu, ret = 0; cpuhp_smt_enable() local
3042 int cpu, ret; cpuhp_sysfs_init() local
3139 set_cpu_online(unsigned int cpu,bool online) set_cpu_online() argument
3165 int cpu = smp_processor_id(); boot_cpu_init() local
[all...]
/linux/arch/loongarch/kernel/
H A Dsmp.c80 unsigned int cpu, i; in show_ipi_list() local
90 static inline void set_cpu_core_map(int cpu) in set_cpu_core_map()
104 static inline void set_cpu_sibling_map(int cpu) in set_cpu_sibling_map()
118 static inline void clear_cpu_sibling_map(int cpu) in clear_cpu_sibling_map()
158 static void csr_mail_send(uint64_t data, int cpu, int mailbox) in csr_mail_send()
177 static u32 ipi_read_clear(int cpu) in ipi_read_clear()
190 static void ipi_write_action(int cpu, u32 action) in ipi_write_action()
199 static void loongson_send_ipi_single(int cpu, unsigned int action) in loongson_send_ipi_single()
217 void arch_smp_send_reschedule(int cpu) in arch_smp_send_reschedule()
233 unsigned int cpu = smp_processor_id(); in loongson_ipi_interrupt() local
[all …]
/linux/arch/x86/xen/
H A Dsmp_pv.c59 int cpu; in cpu_bringup() local
96 void xen_smp_intr_free_pv(unsigned int cpu) in xen_smp_intr_free_pv()
113 int xen_smp_intr_init_pv(unsigned int cpu) in xen_smp_intr_init_pv()
186 unsigned cpu; in xen_pv_smp_prepare_cpus() local
225 cpu_initialize_context(unsigned int cpu, struct task_struct *idle) in cpu_initialize_context()
290 static int xen_pv_kick_ap(unsigned int cpu, struct task_struct *idle) in xen_pv_kick_ap()
327 unsigned int cpu = smp_processor_id(); in xen_pv_cpu_disable() local
337 static void xen_pv_cpu_die(unsigned int cpu) in xen_pv_cpu_die()
345 static void xen_pv_cleanup_dead_cpu(unsigned int cpu) in xen_pv_cleanup_dead_cpu()
367 static void xen_pv_cpu_die(unsigned int cpu) in xen_pv_cpu_die()
[all …]
/linux/arch/s390/include/asm/
H A Dtopology.h29 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) argument
30 #define topology_thread_id(cpu) (cpu_topology[cpu].thread_id) argument
31 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_mask) 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
37 #define topology_drawer_cpumask(cpu) (&cpu_topology[cpu].drawer_mask) argument
38 #define topology_cpu_dedicated(cpu) (cpu_topology[cpu].dedicated) argument
[all …]
/linux/arch/x86/mm/
H A Dnuma.c50 int numa_cpu_node(int cpu) in numa_cpu_node()
68 void numa_set_node(int cpu, int node) in numa_set_node()
90 void numa_clear_node(int cpu) in numa_clear_node()
289 int cpu; in init_cpu_to_node() local
319 void numa_add_cpu(unsigned int cpu) in numa_add_cpu()
324 void numa_remove_cpu(unsigned int cpu) in numa_remove_cpu()
332 int __cpu_to_node(int cpu) in __cpu_to_node()
348 int early_cpu_to_node(int cpu) in early_cpu_to_node()
362 void debug_cpumask_set_cpu(unsigned int cpu, int node, bool enable) in debug_cpumask_set_cpu()
389 static void numa_set_cpumask(int cpu, bool enable) in numa_set_cpumask()
[all …]
/linux/kernel/time/
H A Dtick-broadcast.c47 static inline void tick_broadcast_clear_oneshot(int cpu) { } in tick_broadcast_clear_oneshot()
50 static inline void tick_broadcast_oneshot_offline(unsigned int cpu) { } in tick_broadcast_oneshot_offline()
69 const struct clock_event_device *tick_get_wakeup_device(int cpu) in tick_get_wakeup_device()
102 static struct clock_event_device *tick_get_oneshot_wakeup_device(int cpu) in tick_get_oneshot_wakeup_device()
117 int cpu) in tick_set_oneshot_wakeup_device()
148 static struct clock_event_device *tick_get_oneshot_wakeup_device(int cpu) in tick_get_oneshot_wakeup_device()
154 int cpu) in tick_set_oneshot_wakeup_device()
163 void tick_install_broadcast_device(struct clock_event_device *dev, int cpu) in tick_install_broadcast_device()
247 int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu) in tick_device_uses_broadcast()
348 int cpu = smp_processor_id(); in tick_do_broadcast() local
[all …]
/linux/drivers/cpufreq/
H A Dintel_pstate.c228 int cpu; member
356 static void intel_pstate_set_itmt_prio(int cpu) in intel_pstate_set_itmt_prio()
399 static int intel_pstate_get_cppc_guaranteed(int cpu) in intel_pstate_get_cppc_guaranteed()
414 static int intel_pstate_cppc_get_scaling(int cpu) in intel_pstate_cppc_get_scaling()
434 static inline void intel_pstate_set_itmt_prio(int cpu) in intel_pstate_set_itmt_prio()
441 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits() local
497 struct cpudata *cpu; in intel_pstate_exit_perf_limits() local
521 static inline int intel_pstate_get_cppc_guaranteed(int cpu) in intel_pstate_get_cppc_guaranteed()
526 static int intel_pstate_cppc_get_scaling(int cpu) in intel_pstate_cppc_get_scaling()
532 static int intel_pstate_freq_to_hwp_rel(struct cpudata *cpu, int freq, in intel_pstate_freq_to_hwp_rel()
[all …]

12345678910>>...70