/linux-master/arch/arm/mach-alpine/ |
H A D | platsmp.c | 17 static int alpine_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 28 return alpine_cpu_wakeup(cpu_logical_map(cpu), (uint32_t)addr);
|
/linux-master/arch/mips/sibyte/bcm1480/ |
H A D | smp.c | 67 static void bcm1480_send_ipi_single(int cpu, unsigned int action) argument 69 __raw_writeq((((u64)action)<< 48), mailbox_0_set_regs[cpu]); 107 static int bcm1480_boot_secondary(int cpu, struct task_struct *idle) argument 111 retval = cfe_cpu_start(cpu_logical_map(cpu), &smp_bootstrap, 115 printk("cfe_start_cpu(%i) returned %i\n" , cpu, retval); 160 int cpu = smp_processor_id(); local 166 action = (__raw_readq(mailbox_0_regs[cpu]) >> 48) & 0xffff; 169 __raw_writeq(((u64)action)<<48, mailbox_0_clear_regs[cpu]);
|
/linux-master/arch/mips/sibyte/sb1250/ |
H A D | smp.c | 56 static void sb1250_send_ipi_single(int cpu, unsigned int action) argument 58 __raw_writeq((((u64)action) << 48), mailbox_set_regs[cpu]); 96 static int sb1250_boot_secondary(int cpu, struct task_struct *idle) argument 100 retval = cfe_cpu_start(cpu_logical_map(cpu), &smp_bootstrap, 104 printk("cfe_start_cpu(%i) returned %i\n" , cpu, retval); 149 int cpu = smp_processor_id(); local 155 action = (____raw_readq(mailbox_regs[cpu]) >> 48) & 0xffff; 158 ____raw_writeq(((u64)action) << 48, mailbox_clear_regs[cpu]);
|
/linux-master/arch/mips/include/asm/mach-ip27/ |
H A D | topology.h | 10 unsigned short p_speed; /* cpu speed in MHz */ 16 #define cpu_to_node(cpu) (cputonasid(cpu))
|
/linux-master/kernel/sched/ |
H A D | cpupri.h | 25 bool (*fitness_fn)(struct task_struct *p, int cpu)); 26 void cpupri_set(struct cpupri *cp, int cpu, int pri);
|
/linux-master/include/linux/sched/ |
H A D | cpufreq.h | 20 void cpufreq_add_update_util_hook(int cpu, struct update_util_data *data, 23 void cpufreq_remove_update_util_hook(int cpu);
|
/linux-master/tools/rcu/ |
H A D | rcu-cbs.py | 41 for cpu in for_each_possible_cpu(prog): 42 rdp = per_cpu_ptr(rdp0, cpu); 44 # print("CPU " + str(cpu) + " RCU callbacks: " + str(len));
|
/linux-master/arch/arm/mach-imx/ |
H A D | src.c | 122 void imx_enable_cpu(int cpu, bool enable) argument 126 cpu = cpu_logical_map(cpu); 132 mask = 1 << (BP_SRC_A7RCR1_A7_CORE1_ENABLE + cpu - 1); 137 mask = 1 << (BP_SRC_SCR_CORE1_ENABLE + cpu - 1); 140 val |= 1 << (BP_SRC_SCR_CORE1_RST + cpu - 1); 146 void imx_set_cpu_jump(int cpu, void *jump_addr) argument 148 cpu = cpu_logical_map(cpu); 150 src_base + SRC_GPR1(gpr_v2) + cpu * 153 imx_get_cpu_arg(int cpu) argument 159 imx_set_cpu_arg(int cpu, u32 arg) argument [all...] |
/linux-master/include/soc/tegra/ |
H A D | pm.h | 31 int tegra_pm_park_secondary_cpu(unsigned long cpu); 62 static inline int tegra_pm_park_secondary_cpu(unsigned long cpu) argument
|
/linux-master/kernel/ |
H A D | stop_machine.c | 12 #include <linux/cpu.h> 36 /* the actual stopper, one per every possible cpu, enabled on online cpus */ 93 static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work) argument 95 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); 116 * stop_one_cpu - stop a cpu 117 * @cpu: cpu to stop 121 * Execute @fn(@arg) on @cpu. @fn is run in a process context with 122 * the highest priority preempting any task on the cpu and 126 * This function doesn't guarantee @cpu stay 139 stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) argument 207 int cpu = smp_processor_id(), err = 0; local 384 stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, struct cpu_stop_work *work_buf) argument 396 unsigned int cpu; local 474 cpu_stop_should_run(unsigned int cpu) argument 486 cpu_stopper_thread(unsigned int cpu) argument 526 stop_machine_park(int cpu) argument 538 cpu_stop_create(unsigned int cpu) argument 543 cpu_stop_park(unsigned int cpu) argument 550 stop_machine_unpark(int cpu) argument 570 unsigned int cpu; local 635 stop_core_cpuslocked(unsigned int cpu, cpu_stop_fn_t fn, void *data) argument [all...] |
/linux-master/drivers/irqchip/ |
H A D | irq-bcm2836.c | 8 #include <linux/cpu.h> 27 int cpu) 29 void __iomem *reg = intc.base + reg_offset + 4 * cpu; 36 int cpu) 38 void __iomem *reg = intc.base + reg_offset + 4 * cpu; 139 int cpu = smp_processor_id(); local 142 stat = readl_relaxed(intc.base + LOCAL_IRQ_PENDING0 + 4 * cpu); 156 int cpu = smp_processor_id(); local 161 mbox_val = readl_relaxed(intc.base + LOCAL_MAILBOX0_CLR0 + 16 * cpu); 172 int cpu local 25 bcm2836_arm_irqchip_mask_per_cpu_irq(unsigned int reg_offset, unsigned int bit, int cpu) argument 34 bcm2836_arm_irqchip_unmask_per_cpu_irq(unsigned int reg_offset, unsigned int bit, int cpu) argument 181 int cpu; local 231 bcm2836_cpu_starting(unsigned int cpu) argument 238 bcm2836_cpu_dying(unsigned int cpu) argument [all...] |
/linux-master/drivers/cpuidle/ |
H A D | dt_idle_genpd.h | 19 struct device *dt_idle_attach_cpu(int cpu, const char *name); 46 static inline struct device *dt_idle_attach_cpu(int cpu, const char *name) argument
|
/linux-master/arch/arc/kernel/ |
H A D | mcip.c | 26 static void mcip_update_gfrc_halt_mask(int cpu) argument 45 gfrc_halt_mask |= BIT(cpu); 51 static void mcip_update_debug_halt_mask(int cpu) argument 66 mcip_mask |= BIT(cpu); 79 static void mcip_setup_per_cpu(int cpu) argument 85 smp_ipi_irq_setup(cpu, IPI_IRQ); 86 smp_ipi_irq_setup(cpu, SOFTIRQ_IRQ); 90 mcip_update_gfrc_halt_mask(cpu); 94 mcip_update_debug_halt_mask(cpu); 97 static void mcip_ipi_send(int cpu) argument 126 unsigned int cpu, c; local [all...] |
/linux-master/arch/loongarch/include/asm/ |
H A D | setup.h | 18 extern void tlb_init(int cpu); 21 extern void per_cpu_trap_init(int cpu);
|
H A D | bootinfo.h | 45 static inline bool io_master(int cpu) argument 47 return test_bit(cpu, loongson_sysconf.cores_io_master);
|
H A D | acpi.h | 43 static inline u32 get_acpi_id_for_cpu(unsigned int cpu) argument 45 return acpi_core_pic[cpu_logical_map(cpu)].processor_id;
|
/linux-master/arch/x86/include/asm/fpu/ |
H A D | sched.h | 40 static inline void switch_fpu_prepare(struct task_struct *old, int cpu) argument 55 old_fpu->last_cpu = cpu;
|
/linux-master/arch/x86/events/amd/ |
H A D | uncore.c | 13 #include <linux/cpu.h> 39 int cpu; member in struct:amd_uncore_ctx 78 void (*scan)(struct amd_uncore *uncore, unsigned int cpu); 79 int (*init)(struct amd_uncore *uncore, unsigned int cpu); 80 void (*move)(struct amd_uncore *uncore, unsigned int cpu); 81 void (*free)(struct amd_uncore *uncore, unsigned int cpu); 148 struct amd_uncore_ctx *ctx = *per_cpu_ptr(pmu->ctx, event->cpu); 193 struct amd_uncore_ctx *ctx = *per_cpu_ptr(pmu->ctx, event->cpu); 215 if (event->cpu < 0) 219 ctx = *per_cpu_ptr(pmu->ctx, event->cpu); 391 amd_uncore_ctx_cid(struct amd_uncore *uncore, unsigned int cpu) argument 398 amd_uncore_ctx_gid(struct amd_uncore *uncore, unsigned int cpu) argument 405 amd_uncore_ctx_num_pmcs(struct amd_uncore *uncore, unsigned int cpu) argument 411 amd_uncore_ctx_free(struct amd_uncore *uncore, unsigned int cpu) argument 438 amd_uncore_ctx_init(struct amd_uncore *uncore, unsigned int cpu) argument 505 amd_uncore_ctx_move(struct amd_uncore *uncore, unsigned int cpu) argument 537 amd_uncore_cpu_starting(unsigned int cpu) argument 550 amd_uncore_cpu_online(unsigned int cpu) argument 564 amd_uncore_cpu_down_prepare(unsigned int cpu) argument 577 amd_uncore_cpu_dead(unsigned int cpu) argument 631 amd_uncore_df_ctx_scan(struct amd_uncore *uncore, unsigned int cpu) argument 653 amd_uncore_df_ctx_init(struct amd_uncore *uncore, unsigned int cpu) argument 765 amd_uncore_l3_ctx_scan(struct amd_uncore *uncore, unsigned int cpu) argument 784 amd_uncore_l3_ctx_init(struct amd_uncore *uncore, unsigned int cpu) argument 884 amd_uncore_umc_ctx_scan(struct amd_uncore *uncore, unsigned int cpu) argument 902 amd_uncore_umc_ctx_init(struct amd_uncore *uncore, unsigned int cpu) argument [all...] |
/linux-master/arch/x86/xen/ |
H A D | apic.c | 47 int ret, cpu; local 54 cpu = smp_processor_id(); 56 return cpu ? cpuid_to_apicid[cpu] << 24 : 0; 58 op.u.pcpu_info.xen_cpuid = cpu; 107 static u32 xen_cpu_present_to_apicid(int cpu) argument 109 if (cpu_present(cpu)) 110 return cpu_data(cpu).topo.apicid;
|
H A D | enlighten_hvm.c | 4 #include <linux/cpu.h> 16 #include <asm/cpu.h> 161 static int xen_cpu_up_prepare_hvm(unsigned int cpu) argument 171 xen_uninit_lock_cpu(cpu); 173 if (cpu_acpi_id(cpu) != CPU_ACPIID_INVALID) 174 per_cpu(xen_vcpu_id, cpu) = cpu_acpi_id(cpu); 176 per_cpu(xen_vcpu_id, cpu) = cpu; 177 xen_vcpu_setup(cpu); 201 xen_cpu_dead_hvm(unsigned int cpu) argument [all...] |
/linux-master/drivers/block/zram/ |
H A D | zcomp.h | 25 int zcomp_cpu_up_prepare(unsigned int cpu, struct hlist_node *node); 26 int zcomp_cpu_dead(unsigned int cpu, struct hlist_node *node);
|
/linux-master/include/linux/ |
H A D | cpuhotplug.h | 251 int (*startup)(unsigned int cpu), 252 int (*teardown)(unsigned int cpu), bool multi_instance); 256 int (*startup)(unsigned int cpu), 257 int (*teardown)(unsigned int cpu), 272 int (*startup)(unsigned int cpu), 273 int (*teardown)(unsigned int cpu)) 292 int (*startup)(unsigned int cpu), 293 int (*teardown)(unsigned int cpu)) 312 int (*startup)(unsigned int cpu), 313 int (*teardown)(unsigned int cpu)) 270 cpuhp_setup_state(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu)) argument 290 cpuhp_setup_state_cpuslocked(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu)) argument 310 cpuhp_setup_state_nocalls(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu)) argument 332 cpuhp_setup_state_nocalls_cpuslocked(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu)) argument 353 cpuhp_setup_state_multi(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu, struct hlist_node *node), int (*teardown)(unsigned int cpu, struct hlist_node *node)) argument 523 arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) argument [all...] |
/linux-master/arch/mips/kernel/ |
H A D | cpu-probe.c | 18 #include <asm/cpu.h> 19 #include <asm/cpu-features.h> 20 #include <asm/cpu-type.h> 100 /* Disable it in the boot cpu */ 175 * Probe whether cpu has config register by trying to play with 195 static inline void set_elf_platform(int cpu, const char *plat) argument 197 if (cpu == 0) 1036 static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu) argument 1041 __cpu_name[cpu] = "R2000"; 1053 __cpu_name[cpu] 1304 cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu) argument 1471 cpu_probe_alchemy(struct cpuinfo_mips *c, unsigned int cpu) argument 1511 cpu_probe_sibyte(struct cpuinfo_mips *c, unsigned int cpu) argument 1531 cpu_probe_sandcraft(struct cpuinfo_mips *c, unsigned int cpu) argument 1544 cpu_probe_nxp(struct cpuinfo_mips *c, unsigned int cpu) argument 1556 cpu_probe_broadcom(struct cpuinfo_mips *c, unsigned int cpu) argument 1605 cpu_probe_cavium(struct cpuinfo_mips *c, unsigned int cpu) argument 1677 cpu_probe_loongson(struct cpuinfo_mips *c, unsigned int cpu) argument 1740 cpu_probe_loongson(struct cpuinfo_mips *c, unsigned int cpu) argument 1743 cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu) argument 1841 unsigned int cpu = smp_processor_id(); local [all...] |
/linux-master/arch/mips/sgi-ip30/ |
H A D | ip30-irq.c | 22 int cpu; member in struct:heart_irq_data 47 int cpu = smp_processor_id(); local 51 mask = heart_read(&heart_regs->imr[cpu]); 60 heart_write(mask & ~(pending), &heart_regs->imr[cpu]); 77 cpu, pending, mask, cause); 94 heart_write(mask, &heart_regs->imr[cpu]); 99 int cpu = smp_processor_id(); local 105 mask = (heart_read(&heart_regs->imr[cpu]) & 147 unsigned long *mask = &per_cpu(irq_enable_mask, hd->cpu); 150 heart_write(*mask, &heart_regs->imr[hd->cpu]); 249 int cpu = smp_processor_id(); local [all...] |
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | smp.c | 17 #include <linux/cpu.h> 117 unsigned int cpu = smp_processor_id(); local 121 /* mask all irqs to prevent cpu wakeup */ 122 qoriq_pm_ops->irq_mask(cpu); 129 generic_set_cpu_dead(cpu); 133 qoriq_pm_ops->cpu_die(cpu); 139 static void qoriq_cpu_kill(unsigned int cpu) argument 144 if (is_cpu_dead(cpu)) { 146 paca_ptrs[cpu]->cpu_start = 0; 152 pr_err("CPU%d didn't die...\n", cpu); 181 int cpu = *(const int *)info; local 188 smp_85xx_start_cpu(int cpu) argument 389 int cpu = smp_processor_id(); local [all...] |