Home
last modified time | relevance | path

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

12345678910>>...66

/linux/include/linux/
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()
187 #define topology_die_id(cpu) ((void)(cpu), -1) argument
190 #define topology_cluster_id(cpu) ((void)(cpu), -1) argument
193 #define topology_core_id(cpu) ((void)(cpu), 0) argument
196 #define topology_sibling_cpumask(cpu) cpumask_of(cpu) argument
199 #define topology_core_cpumask(cpu) cpumask_of(cpu) argument
[all …]
A Dcpumask.h178 #define for_each_cpu(cpu, mask) \ argument
180 #define for_each_cpu_not(cpu, mask) \ argument
182 #define for_each_cpu_wrap(cpu, mask, start) \ argument
184 #define for_each_cpu_and(cpu, mask1, mask2) \ argument
240 #define for_each_cpu(cpu, mask) \ argument
252 #define for_each_cpu_not(cpu, mask) \ argument
610 #define cpumask_of(cpu) (get_cpu_mask(cpu)) argument
823 set_cpu_active(unsigned int cpu, bool active) in set_cpu_active()
832 set_cpu_dying(unsigned int cpu, bool dying) in set_cpu_dying()
913 static inline bool cpu_dying(unsigned int cpu) in cpu_dying()
[all …]
A Darch_topology.h19 static inline unsigned long topology_get_cpu_scale(int cpu) in topology_get_cpu_scale()
28 static inline unsigned long topology_get_freq_scale(int cpu) in topology_get_freq_scale()
54 static inline unsigned long topology_get_thermal_pressure(int cpu) in topology_get_thermal_pressure()
77 #define topology_physical_package_id(cpu) (cpu_topology[cpu].package_id) argument
78 #define topology_cluster_id(cpu) (cpu_topology[cpu].cluster_id) argument
79 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) argument
80 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) argument
81 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) argument
82 #define topology_cluster_cpumask(cpu) (&cpu_topology[cpu].cluster_sibling) argument
83 #define topology_llc_cpumask(cpu) (&cpu_topology[cpu].llc_sibling) argument
/linux/kernel/
A Dsmpboot.c68 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()
408 void cpu_set_state_online(int cpu) in cpu_set_state_online()
[all …]
/linux/arch/x86/include/asm/
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()
110 #define topology_logical_die_id(cpu) (cpu_data(cpu).logical_die_id) argument
111 #define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id) argument
112 #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) argument
117 #define topology_cluster_id(cpu) (per_cpu(cpu_l2c_id, cpu)) argument
118 #define topology_die_cpumask(cpu) (per_cpu(cpu_die_map, cpu)) argument
119 #define topology_cluster_cpumask(cpu) (cpu_clustergroup_mask(cpu)) argument
120 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument
152 unsigned int cpu) { return 0; } in topology_phys_to_logical_die()
[all …]
/linux/tools/power/x86/intel-speed-select/
A Disst-core.c9 int isst_write_pm_config(int cpu, int cp_state) in isst_write_pm_config()
74 int isst_get_ctdp_control(int cpu, int config_index, in isst_get_ctdp_control()
109 int isst_get_tdp_info(int cpu, int config_index, in isst_get_tdp_info()
132 int isst_get_pwr_info(int cpu, int config_index, in isst_get_pwr_info()
176 void isst_get_p1_info(int cpu, int config_index, in isst_get_p1_info()
232 int isst_get_tjmax_info(int cpu, int config_index, in isst_get_tjmax_info()
286 int isst_get_get_trl_from_msr(int cpu, int *trl) in isst_get_get_trl_from_msr()
388 int isst_set_tdp_level(int cpu, int tdp_level) in isst_set_tdp_level()
556 int isst_get_fact_bucket_info(int cpu, int level, in isst_get_fact_bucket_info()
743 int isst_get_config_tdp_lock_status(int cpu) in isst_get_config_tdp_lock_status()
[all …]
/linux/arch/powerpc/platforms/cell/
A Dpmu.c62 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/arch/arm/mach-bcm/
A Dplatsmp-brcmstb.c67 static int per_cpu_sw_state_rd(u32 cpu) in per_cpu_sw_state_rd()
73 static void per_cpu_sw_state_wr(u32 cpu, int val) in per_cpu_sw_state_wr()
80 static inline void per_cpu_sw_state_wr(u32 cpu, int val) { } in per_cpu_sw_state_wr()
83 static void __iomem *pwr_ctrl_get_base(u32 cpu) in pwr_ctrl_get_base()
90 static u32 pwr_ctrl_rd(u32 cpu) in pwr_ctrl_rd()
127 static void cpu_rst_cfg_set(u32 cpu, int set) in cpu_rst_cfg_set()
145 static void brcmstb_cpu_boot(u32 cpu) in brcmstb_cpu_boot()
160 static void brcmstb_cpu_power_on(u32 cpu) in brcmstb_cpu_power_on()
184 static int brcmstb_cpu_get_power_state(u32 cpu) in brcmstb_cpu_get_power_state()
192 static void brcmstb_cpu_die(u32 cpu) in brcmstb_cpu_die()
[all …]
/linux/arch/powerpc/include/asm/
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()
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 int find_and_online_cpu_nid(int cpu) in find_and_online_cpu_nid()
122 static inline int cpu_to_coregroup_id(int cpu) in cpu_to_coregroup_id()
141 #define topology_physical_package_id(cpu) (cpu_to_chip_id(cpu)) argument
143 #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) argument
144 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument
[all …]
A Dsmp.h93 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id()
98 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id()
109 static inline struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask()
114 static inline struct cpumask *cpu_core_mask(int cpu) in cpu_core_mask()
119 static inline struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask()
124 static inline struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask()
137 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask()
191 static inline const struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask()
201 static inline const struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask()
208 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id()
[all …]
/linux/arch/powerpc/kernel/
A Dsmp.c368 void smp_send_reschedule(int cpu) in smp_send_reschedule()
382 unsigned int cpu; in arch_send_call_function_ipi_mask() local
579 unsigned int cpu; in tick_broadcast() local
601 int cpu; in crash_send_ipi() local
1029 int cpu; in init_big_cores() local
1060 unsigned int cpu; in smp_prepare_cpus() local
1203 int is_cpu_dead(unsigned int cpu) in is_cpu_dead()
1313 int cpu_to_core_id(int cpu) in cpu_to_core_id()
1330 int cpu_core_index_of_thread(int cpu) in cpu_core_index_of_thread()
1702 int cpu = smp_processor_id(); in __cpu_disable() local
[all …]
A Dwatchdog.c117 int cpu = raw_smp_processor_id(); in wd_lockup_ipi() local
145 static void set_cpu_stuck(int cpu, u64 tb) in set_cpu_stuck()
150 static void watchdog_smp_panic(int cpu, u64 tb) in watchdog_smp_panic()
242 static void watchdog_timer_interrupt(int cpu) in watchdog_timer_interrupt()
257 int cpu = raw_smp_processor_id(); in DEFINE_INTERRUPT_HANDLER_NMI() local
302 int cpu = smp_processor_id(); in watchdog_timer_fn() local
320 int cpu = smp_processor_id(); in arch_touch_nmi_watchdog() local
333 int cpu = smp_processor_id(); in start_watchdog() local
371 int cpu = smp_processor_id(); in stop_watchdog() local
404 int cpu; in watchdog_nmi_stop() local
[all …]
/linux/tools/power/cpupower/lib/
A Dcpufreq.c35 static unsigned int sysfs_cpufreq_write_file(unsigned int cpu, in sysfs_cpufreq_write_file()
126 static char *sysfs_cpufreq_get_one_string(unsigned int cpu, in sysfs_cpufreq_get_one_string()
168 static int sysfs_cpufreq_write_one_value(unsigned int cpu, in sysfs_cpufreq_write_one_value()
182 unsigned long cpufreq_get_freq_kernel(unsigned int cpu) in cpufreq_get_freq_kernel()
187 unsigned long cpufreq_get_freq_hardware(unsigned int cpu) in cpufreq_get_freq_hardware()
197 int cpufreq_get_hardware_limits(unsigned int cpu, in cpufreq_get_hardware_limits()
215 char *cpufreq_get_driver(unsigned int cpu) in cpufreq_get_driver()
262 int cpu) in cpufreq_get_available_governors()
336 *cpufreq_get_available_frequencies(unsigned int cpu) in cpufreq_get_available_frequencies()
392 *cpufreq_get_boost_frequencies(unsigned int cpu) in cpufreq_get_boost_frequencies()
[all …]
/linux/tools/power/cpupower/utils/
A Dcpufreq-info.c58 unsigned int cpu, nr_cpus; in proc_cpufreq_output() local
163 static int get_boost_mode_x86(unsigned int cpu) in get_boost_mode_x86()
244 static int get_boost_mode(unsigned int cpu) in get_boost_mode()
331 static int get_driver(unsigned int cpu) in get_driver()
345 static int get_policy(unsigned int cpu) in get_policy()
367 static int get_available_governors(unsigned int cpu) in get_available_governors()
390 static int get_affected_cpus(unsigned int cpu) in get_affected_cpus()
411 static int get_related_cpus(unsigned int cpu) in get_related_cpus()
457 static int get_latency(unsigned int cpu, unsigned int human) in get_latency()
475 static void debug_output_one(unsigned int cpu) in debug_output_one()
[all …]
/linux/arch/arm/kernel/
A Dsmp.c242 static void ipi_teardown(int cpu) in ipi_teardown()
258 unsigned int cpu = smp_processor_id(); in __cpu_disable() local
298 void __cpu_die(unsigned int cpu) in __cpu_die()
328 unsigned int cpu = smp_processor_id(); in arch_cpu_idle_dead() local
413 unsigned int cpu; in secondary_start_kernel() local
483 int cpu; in smp_cpus_done() local
548 unsigned int cpu, i; in show_ipi_list() local
641 unsigned int cpu = smp_processor_id(); in do_handle_IPI() local
718 static void ipi_setup(int cpu) in ipi_setup()
753 void smp_send_reschedule(int cpu) in smp_send_reschedule()
[all …]
/linux/arch/mips/loongson64/
A Dsmp.c80 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/arch/s390/include/asm/
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
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/drivers/base/
A Darch_topology.c58 int cpu; in topology_set_scale_freq_source() local
89 int cpu; in topology_clear_scale_freq_source() local
161 int cpu; in topology_set_thermal_pressure() local
185 struct device *cpu; in register_cpu_capacity_sysctl() local
235 int cpu; in topology_normalize_cpu_scale() local
319 int cpu; in init_cpu_capacity_callback() local
403 int cpu; in get_cpu_for_node() local
426 int cpu; in parse_core() local
539 int cpu; in parse_dt_topology() local
608 int cpu; in update_siblings_masks() local
[all …]
A Dcacheinfo.c26 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) argument
29 struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu) in get_cpu_cacheinfo()
156 static int cache_setup_of_node(unsigned int cpu) in cache_setup_of_node()
211 int __weak cache_setup_acpi(unsigned int cpu) in cache_setup_acpi()
291 static void free_cache_attributes(unsigned int cpu) in free_cache_attributes()
303 int __weak init_cache_level(unsigned int cpu) in init_cache_level()
308 int __weak populate_cache_leaves(unsigned int cpu) in populate_cache_leaves()
568 static void cpu_cache_sysfs_exit(unsigned int cpu) in cpu_cache_sysfs_exit()
587 static int cpu_cache_sysfs_init(unsigned int cpu) in cpu_cache_sysfs_init()
611 static int cache_add_dev(unsigned int cpu) in cache_add_dev()
[all …]
/linux/arch/arm64/kernel/
A Dsmp.c201 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
722 unsigned int cpu; in smp_prepare_cpus() local
780 unsigned int cpu, i; in arch_show_interrupts() local
931 static void ipi_setup(int cpu) in ipi_setup()
943 static void ipi_teardown(int cpu) in ipi_teardown()
[all …]
A Dpsci.c24 static int __init cpu_psci_cpu_init(unsigned int cpu) in cpu_psci_cpu_init()
29 static int __init cpu_psci_cpu_prepare(unsigned int cpu) in cpu_psci_cpu_prepare()
39 static int cpu_psci_cpu_boot(unsigned int cpu) in cpu_psci_cpu_boot()
50 static bool cpu_psci_cpu_can_disable(unsigned int cpu) in cpu_psci_cpu_can_disable()
55 static int cpu_psci_cpu_disable(unsigned int cpu) in cpu_psci_cpu_disable()
68 static void cpu_psci_cpu_die(unsigned int cpu) in cpu_psci_cpu_die()
80 static int cpu_psci_cpu_kill(unsigned int cpu) in cpu_psci_cpu_kill()
/linux/drivers/acpi/
A Dprocessor_thermal.c33 #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()
62 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state()
70 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state()
78 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state()
124 unsigned int cpu; in acpi_thermal_cpufreq_init() local
144 unsigned int cpu; in acpi_thermal_cpufreq_exit() local
154 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state()
159 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state()
[all …]
/linux/arch/sparc/include/asm/
A Dtopology_64.h9 static inline int cpu_to_node(int cpu) in cpu_to_node()
46 #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) argument
47 #define topology_core_id(cpu) (cpu_data(cpu).core_id) argument
48 #define topology_core_cpumask(cpu) (&cpu_core_sib_map[cpu]) argument
49 #define topology_core_cache_cpumask(cpu) (&cpu_core_sib_cache_map[cpu]) argument
50 #define topology_sibling_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) argument
60 static inline const struct cpumask *cpu_coregroup_mask(int cpu) in cpu_coregroup_mask()
/linux/arch/powerpc/sysdev/
A Dfsl_rcpm.c27 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 …]
/linux/kernel/time/
A Dtick-broadcast.c116 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()
689 int cpu, next_cpu = 0; in tick_handle_oneshot_broadcast() local
793 int cpu) in ___tick_broadcast_oneshot_control()
931 int cpu) in tick_oneshot_wakeup_control()
961 int cpu = smp_processor_id(); in __tick_broadcast_oneshot_control() local
991 int cpu; in tick_broadcast_init_next_event() local
[all …]

Completed in 58 milliseconds

12345678910>>...66