/arch/arm64/kernel/ |
D | psci.c | 24 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()
|
/arch/sparc/include/asm/ |
D | topology_64.h | 9 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()
|
/arch/x86/include/asm/ |
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() 107 #define topology_logical_package_id(cpu) (cpu_data(cpu).logical_proc_id) argument 108 #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) argument 109 #define topology_logical_die_id(cpu) (cpu_data(cpu).logical_die_id) argument 110 #define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id) argument 111 #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) argument 116 #define topology_die_cpumask(cpu) (per_cpu(cpu_die_map, cpu)) argument 117 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument 118 #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) argument [all …]
|
D | cpumask.h | 19 static __always_inline bool arch_cpu_online(int cpu) in arch_cpu_online() 24 static __always_inline bool arch_cpu_online(int cpu) in arch_cpu_online() 30 #define arch_cpu_is_offline(cpu) unlikely(!arch_cpu_online(cpu)) argument
|
/arch/powerpc/platforms/cell/ |
D | pmu.c | 61 u32 cbe_read_phys_ctr(u32 cpu, u32 phys_ctr) in cbe_read_phys_ctr() 80 void cbe_write_phys_ctr(u32 cpu, u32 phys_ctr, u32 val) in cbe_write_phys_ctr() 113 u32 cbe_read_ctr(u32 cpu, u32 ctr) in cbe_read_ctr() 127 void cbe_write_ctr(u32 cpu, u32 ctr, u32 val) in cbe_write_ctr() 152 u32 cbe_read_pm07_control(u32 cpu, u32 ctr) in cbe_read_pm07_control() 163 void cbe_write_pm07_control(u32 cpu, u32 ctr, u32 val) in cbe_write_pm07_control() 174 u32 cbe_read_pm(u32 cpu, enum pm_reg_name reg) in cbe_read_pm() 216 void cbe_write_pm(u32 cpu, enum pm_reg_name reg, u32 val) in cbe_write_pm() 258 u32 cbe_get_ctr_size(u32 cpu, u32 phys_ctr) in cbe_get_ctr_size() 271 void cbe_set_ctr_size(u32 cpu, u32 phys_ctr, u32 ctr_size) in cbe_set_ctr_size() [all …]
|
/arch/powerpc/include/asm/ |
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() 71 static inline int early_cpu_to_node(int cpu) { return 0; } in early_cpu_to_node() 85 static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) {} in update_numa_cpu_lookup_table() 104 static inline int find_and_online_cpu_nid(int cpu) in find_and_online_cpu_nid() 109 static inline int cpu_to_coregroup_id(int cpu) in cpu_to_coregroup_id() 128 #define topology_physical_package_id(cpu) (cpu_to_chip_id(cpu)) argument 130 #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) argument 131 #define topology_core_cpumask(cpu) (cpu_cpu_mask(cpu)) argument 132 #define topology_core_id(cpu) (cpu_to_core_id(cpu)) argument
|
D | paravirt.h | 22 static inline u32 yield_count_of(int cpu) in yield_count_of() 44 static inline void yield_to_preempted(int cpu, u32 yield_count) in yield_to_preempted() 49 static inline void prod_cpu(int cpu) in prod_cpu() 64 static inline u32 yield_count_of(int cpu) in yield_count_of() 70 static inline void yield_to_preempted(int cpu, u32 yield_count) in yield_to_preempted() 82 static inline void prod_cpu(int cpu) in prod_cpu() 90 static inline bool vcpu_is_preempted(int cpu) in vcpu_is_preempted()
|
D | cputhreads.h | 49 int i, cpu; in cpu_thread_mask_to_cores() local 77 static inline int cpu_core_index_of_thread(int cpu) { return cpu; } in cpu_core_index_of_thread() 81 static inline int cpu_thread_in_core(int cpu) in cpu_thread_in_core() 86 static inline int cpu_thread_in_subcore(int cpu) in cpu_thread_in_subcore() 91 static inline int cpu_first_thread_sibling(int cpu) in cpu_first_thread_sibling() 96 static inline int cpu_last_thread_sibling(int cpu) in cpu_last_thread_sibling() 107 static inline int cpu_first_tlb_thread_sibling(int cpu) in cpu_first_tlb_thread_sibling() 115 static inline int cpu_last_tlb_thread_sibling(int cpu) in cpu_last_tlb_thread_sibling()
|
D | smp.h | 103 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() 108 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() 119 static inline struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() 124 static inline struct cpumask *cpu_core_mask(int cpu) in cpu_core_mask() 129 static inline struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() 134 static inline struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask() 145 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask() 197 static inline const struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() 202 static inline const struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask() 210 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() [all …]
|
/arch/mips/include/asm/ |
D | topology.h | 15 #define topology_physical_package_id(cpu) (cpu_data[cpu].package) argument 16 #define topology_core_id(cpu) (cpu_core(&cpu_data[cpu])) argument 17 #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) argument 18 #define topology_sibling_cpumask(cpu) (&cpu_sibling_map[cpu]) argument
|
/arch/arm/mach-bcm/ |
D | platsmp-brcmstb.c | 67 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() 96 static void pwr_ctrl_set(unsigned int cpu, u32 val, u32 mask) in pwr_ctrl_set() 102 static void pwr_ctrl_clr(unsigned int cpu, u32 val, u32 mask) in pwr_ctrl_clr() 109 static int pwr_ctrl_wait_tmout(unsigned int cpu, u32 set, u32 mask) in pwr_ctrl_wait_tmout() 127 static void cpu_rst_cfg_set(u32 cpu, int set) in cpu_rst_cfg_set() 138 static void cpu_set_boot_addr(u32 cpu, unsigned long boot_addr) in cpu_set_boot_addr() [all …]
|
/arch/powerpc/kernel/ |
D | watchdog.c | 114 int cpu = raw_smp_processor_id(); in wd_lockup_ipi() local 146 static void set_cpu_stuck(int cpu, u64 tb) in set_cpu_stuck() 151 static void watchdog_smp_panic(int cpu, u64 tb) in watchdog_smp_panic() 205 static void wd_smp_clear_cpu_pending(int cpu, u64 tb) in wd_smp_clear_cpu_pending() 273 static void watchdog_timer_interrupt(int cpu) in watchdog_timer_interrupt() 288 int cpu = raw_smp_processor_id(); in soft_nmi_interrupt() local 333 int cpu = smp_processor_id(); in watchdog_timer_fn() local 351 int cpu = smp_processor_id(); in arch_touch_nmi_watchdog() local 368 int cpu = smp_processor_id(); in start_watchdog() local 398 static int start_watchdog_on_cpu(unsigned int cpu) in start_watchdog_on_cpu() [all …]
|
D | smp.c | 259 void smp_muxed_ipi_set_message(int cpu, int msg) in smp_muxed_ipi_set_message() 271 void smp_muxed_ipi_message_pass(int cpu, int msg) in smp_muxed_ipi_message_pass() 333 static inline void do_message_pass(int cpu, int msg) in do_message_pass() 343 void smp_send_reschedule(int cpu) in smp_send_reschedule() 350 void arch_send_call_function_single_ipi(int cpu) in arch_send_call_function_single_ipi() 357 unsigned int cpu; in arch_send_call_function_ipi_mask() local 451 static void do_smp_send_nmi_ipi(int cpu, bool safe) in do_smp_send_nmi_ipi() 475 static int __smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), in __smp_send_nmi_ipi() 540 int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) in smp_send_nmi_ipi() 545 int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) in smp_send_safe_nmi_ipi() [all …]
|
D | tau_6xx.c | 55 static void set_thresholds(unsigned long cpu) in set_thresholds() 66 static void TAUupdate(int cpu) in TAUupdate() 105 int cpu = smp_processor_id(); in TAUException() local 118 int cpu; in tau_timeout() local 182 unsigned long cpu = smp_processor_id(); in TAU_init_smp() local 227 u32 cpu_temp_both(unsigned long cpu) in cpu_temp_both() 232 u32 cpu_temp(unsigned long cpu) in cpu_temp() 237 u32 tau_interrupts(unsigned long cpu) in tau_interrupts()
|
/arch/s390/include/asm/ |
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 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 …]
|
/arch/x86/xen/ |
D | smp_pv.c | 63 int cpu; in cpu_bringup() local 101 void xen_smp_intr_free_pv(unsigned int cpu) in xen_smp_intr_free_pv() 118 int xen_smp_intr_init_pv(unsigned int cpu) in xen_smp_intr_init_pv() 213 unsigned cpu; in xen_pv_smp_prepare_cpus() local 262 cpu_initialize_context(unsigned int cpu, struct task_struct *idle) in cpu_initialize_context() 331 static int xen_pv_cpu_up(unsigned int cpu, struct task_struct *idle) in xen_pv_cpu_up() 370 unsigned int cpu = smp_processor_id(); in xen_pv_cpu_disable() local 380 static void xen_pv_cpu_die(unsigned int cpu) in xen_pv_cpu_die() 419 static void xen_pv_cpu_die(unsigned int cpu) in xen_pv_cpu_die() 432 int cpu = smp_processor_id(); in stop_self() local
|
D | smp.h | 30 static inline int xen_smp_intr_init(unsigned int cpu) in xen_smp_intr_init() 34 static inline void xen_smp_intr_free(unsigned int cpu) {} in xen_smp_intr_free() 36 static inline int xen_smp_intr_init_pv(unsigned int cpu) in xen_smp_intr_init_pv() 40 static inline void xen_smp_intr_free_pv(unsigned int cpu) {} in xen_smp_intr_free_pv()
|
/arch/arm/common/ |
D | mcpm_platsmp.c | 19 static void cpu_to_pcpu(unsigned int cpu, in cpu_to_pcpu() 29 static int mcpm_boot_secondary(unsigned int cpu, struct task_struct *idle) in mcpm_boot_secondary() 49 static void mcpm_secondary_init(unsigned int cpu) in mcpm_secondary_init() 56 static int mcpm_cpu_kill(unsigned int cpu) in mcpm_cpu_kill() 65 static bool mcpm_cpu_can_disable(unsigned int cpu) in mcpm_cpu_can_disable() 71 static void mcpm_cpu_die(unsigned int cpu) in mcpm_cpu_die()
|
/arch/arm/mach-sunxi/ |
D | platsmp.c | 24 #define CPUCFG_CPU_PWR_CLAMP_STATUS_REG(cpu) ((cpu) * 0x40 + 0x64) argument 25 #define CPUCFG_CPU_RST_CTRL_REG(cpu) (((cpu) + 1) * 0x40) argument 26 #define CPUCFG_CPU_CTRL_REG(cpu) (((cpu) + 1) * 0x40 + 0x04) argument 27 #define CPUCFG_CPU_STATUS_REG(cpu) (((cpu) + 1) * 0x40 + 0x08) argument 35 #define PRCM_CPU_PWR_CLAMP_REG(cpu) (((cpu) * 4) + 0x140) argument 73 static int sun6i_smp_boot_secondary(unsigned int cpu, in sun6i_smp_boot_secondary() 158 static int sun8i_smp_boot_secondary(unsigned int cpu, in sun8i_smp_boot_secondary()
|
/arch/arm/mach-mvebu/ |
D | platsmp-a9.c | 27 static int mvebu_cortex_a9_boot_secondary(unsigned int cpu, in mvebu_cortex_a9_boot_secondary() 69 static void armada_38x_secondary_init(unsigned int cpu) in armada_38x_secondary_init() 75 static void armada_38x_cpu_die(unsigned int cpu) in armada_38x_cpu_die() 90 static int armada_38x_cpu_kill(unsigned int cpu) in armada_38x_cpu_kill()
|
/arch/arm/mach-tegra/ |
D | platsmp.c | 36 static void tegra_secondary_init(unsigned int cpu) in tegra_secondary_init() 42 static int tegra20_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra20_boot_secondary() 70 static int tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra30_boot_secondary() 129 static int tegra114_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra114_boot_secondary() 158 static int tegra_boot_secondary(unsigned int cpu, in tegra_boot_secondary()
|
/arch/arm/kernel/ |
D | psci_smp.c | 45 static int psci_boot_secondary(unsigned int cpu, struct task_struct *idle) in psci_boot_secondary() 54 static int psci_cpu_disable(unsigned int cpu) in psci_cpu_disable() 67 static void psci_cpu_die(unsigned int cpu) in psci_cpu_die() 79 static int psci_cpu_kill(unsigned int cpu) in psci_cpu_kill()
|
D | smp.c | 113 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare() 126 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare() 136 int __cpu_up(unsigned int cpu, struct task_struct *idle) in __cpu_up() 210 static int platform_cpu_kill(unsigned int cpu) in platform_cpu_kill() 217 static int platform_cpu_disable(unsigned int cpu) in platform_cpu_disable() 225 int platform_can_hotplug_cpu(unsigned int cpu) in platform_can_hotplug_cpu() 242 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 [all …]
|
/arch/arm/mach-shmobile/ |
D | platsmp-scu.c | 21 static int shmobile_scu_cpu_prepare(unsigned int cpu) in shmobile_scu_cpu_prepare() 48 void shmobile_smp_scu_cpu_die(unsigned int cpu) in shmobile_smp_scu_cpu_die() 63 static int shmobile_smp_scu_psr_core_disabled(int cpu) in shmobile_smp_scu_psr_core_disabled() 73 int shmobile_smp_scu_cpu_kill(unsigned int cpu) in shmobile_smp_scu_cpu_kill()
|
/arch/powerpc/sysdev/ |
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() 164 static void rcpm_v1_cpu_exit_state(int cpu, int state) in rcpm_v1_cpu_exit_state() [all …]
|