/linux-master/include/linux/ |
H A D | topology.h | 94 static inline int cpu_to_node(int cpu) argument 96 return per_cpu(numa_node, cpu); 108 static inline void set_cpu_numa_node(int cpu, int node) argument 110 per_cpu(numa_node, cpu) = node; 129 * N.B., Do NOT reference the '_numa_mem_' per cpu variable directly. 151 static inline int cpu_to_mem(int cpu) argument 153 return per_cpu(_numa_mem_, cpu); 158 static inline void set_cpu_numa_mem(int cpu, int node) argument 160 per_cpu(_numa_mem_, cpu) = node; 175 static inline int cpu_to_mem(int cpu) argument 237 cpu_smt_mask(int cpu) argument 243 cpu_cpu_mask(int cpu) argument 252 sched_numa_find_nth_cpu(const struct cpumask *cpus, int cpu, int node) argument [all...] |
/linux-master/tools/power/cpupower/bench/ |
H A D | system.h | 11 int set_cpufreq_governor(char *governor, unsigned int cpu); 12 int set_cpu_affinity(unsigned int cpu);
|
/linux-master/arch/mips/include/asm/sn/ |
H A D | arch.h | 20 #define cputonasid(cpu) (sn_cpu_info[(cpu)].p_nasid) 21 #define cputoslice(cpu) (sn_cpu_info[(cpu)].p_slice)
|
/linux-master/include/linux/sched/ |
H A D | nohz.h | 10 extern void nohz_balance_enter_idle(int cpu); 13 static inline void nohz_balance_enter_idle(int cpu) { } argument 27 extern void wake_up_nohz_cpu(int cpu); 29 static inline void wake_up_nohz_cpu(int cpu) { } argument
|
/linux-master/arch/sh/include/asm/ |
H A D | adc.h | 8 #include <cpu/adc.h>
|
H A D | rtc.h | 11 #include <cpu/rtc.h>
|
H A D | topology.h | 7 #define cpu_to_node(cpu) ((void)(cpu),0) 20 const struct cpumask *cpu_coregroup_mask(int cpu); 24 #define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
|
H A D | mmu_context.h | 11 #include <cpu/mmu_context.h> 37 #define asid_cache(cpu) (cpu_data[cpu].asid_cache) 40 #define cpu_context(cpu, mm) ((mm)->context.id[cpu]) 42 #define cpu_asid(cpu, mm) \ 43 (cpu_context((cpu), (mm)) & MMU_CONTEXT_ASID_MASK) 55 static inline void get_mmu_context(struct mm_struct *mm, unsigned int cpu) argument 57 unsigned long asid = asid_cache(cpu); 60 if (((cpu_context(cpu, m 103 activate_context(struct mm_struct *mm, unsigned int cpu) argument 113 unsigned int cpu = smp_processor_id(); local 147 unsigned int cpu = smp_processor_id(); local [all...] |
/linux-master/arch/x86/boot/compressed/ |
H A D | cpuflags.c | 8 return test_bit(flag, cpu.flags);
|
/linux-master/kernel/sched/ |
H A D | smp.h | 9 extern bool call_function_single_prep_ipi(int cpu);
|
/linux-master/arch/mips/include/asm/ |
H A D | cachetype.h | 5 #include <asm/cpu-features.h>
|
/linux-master/arch/parisc/include/asm/ |
H A D | smp.h | 27 #define cpu_number_map(cpu) (cpu) 28 #define cpu_logical_map(cpu) (cpu) 32 extern void arch_send_call_function_single_ipi(int cpu); 35 #define raw_smp_processor_id() (current_thread_info()->cpu) 48 void __cpu_die(unsigned int cpu);
|
/linux-master/arch/powerpc/include/asm/ |
H A D | topology.h | 48 static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) argument 50 numa_cpu_lookup_table[cpu] = node; 53 static inline int early_cpu_to_node(int cpu) argument 57 nid = numa_cpu_lookup_table[cpu]; 61 * This allows callers to safely do NODE_DATA(early_cpu_to_node(cpu)). 69 extern void map_cpu_to_node(int cpu, int node); 71 extern void unmap_cpu_from_node(unsigned long cpu); 76 static inline int early_cpu_to_node(int cpu) { return 0; } argument 90 static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) {} argument 105 static inline void map_cpu_to_node(int cpu, in argument 107 unmap_cpu_from_node(unsigned long cpu) argument 117 find_and_update_cpu_nid(int cpu) argument 118 cpu_to_coregroup_id(int cpu) argument 150 topology_is_primary_thread(unsigned int cpu) argument 155 topology_smt_thread_allowed(unsigned int cpu) argument [all...] |
/linux-master/tools/virtio/ringtest/ |
H A D | run-on-all.sh | 4 CPUS_ONLINE=$(lscpu --online -p=cpu|grep -v -e '#') 11 for cpu in $CPUS_ONLINE 17 test $HOST_AFFINITY '!=' $cpu 19 echo "GUEST AFFINITY $cpu" 20 "$@" --host-affinity $HOST_AFFINITY --guest-affinity $cpu
|
/linux-master/arch/powerpc/kernel/ |
H A D | tau_6xx.c | 3 * temp.c Thermal management for cpu's with Thermal Assist Units 11 * Silly, crazy ideas: use cpu load (from scheduler) and ICTC to extend battery 55 static void set_thresholds(unsigned long cpu) argument 60 mtspr(SPRN_THRM1, THRM1_THRES(tau[cpu].low) | THRM1_V | maybe_tie | THRM1_TID); 63 mtspr(SPRN_THRM2, THRM1_THRES(tau[cpu].high) | THRM1_V | maybe_tie); 66 static void TAUupdate(int cpu) argument 77 if (tau[cpu].low >= step_size) { 78 tau[cpu].low -= step_size; 79 tau[cpu].high -= (step_size - window_expand); 81 tau[cpu] 105 int cpu = smp_processor_id(); local 115 int cpu; local 179 unsigned long cpu = smp_processor_id(); local 224 cpu_temp_both(unsigned long cpu) argument 229 cpu_temp(unsigned long cpu) argument 234 tau_interrupts(unsigned long cpu) argument [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | cpu-hotplug.c | 12 #include <linux/cpu.h> 19 bool cpu_has_hotplug(unsigned int cpu) argument 32 unsigned int cpu = smp_processor_id(); local 37 remove_cpu_topology(cpu); 38 numa_remove_cpu(cpu); 39 set_cpu_online(cpu, false); 51 void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) argument 55 pr_notice("CPU%u: off\n", cpu); 57 /* Verify from the firmware if the cpu is really stopped*/ 59 ret = cpu_ops->cpu_is_stopped(cpu); [all...] |
/linux-master/arch/arm/mach-spear/ |
H A D | hotplug.c | 54 static inline void spear13xx_do_lowpower(unsigned int cpu, int *spurious) argument 59 if (spear_pen_release == cpu) { 82 void spear13xx_cpu_die(unsigned int cpu) argument 90 spear13xx_do_lowpower(cpu, &spurious); 99 pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_ksyms_btf_null_check.c | 16 __u32 cpu; local 18 cpu = bpf_get_smp_processor_id(); 19 rq = (struct rq *)bpf_per_cpu_ptr(&runqueues, cpu); 20 active = (int *)bpf_per_cpu_ptr(&bpf_prog_active, cpu); 25 *(volatile int *)(&rq->cpu);
|
/linux-master/arch/xtensa/include/asm/ |
H A D | smp.h | 14 #define raw_smp_processor_id() (current_thread_info()->cpu) 15 #define cpu_logical_map(cpu) (cpu) 24 void arch_send_call_function_single_ipi(int cpu); 35 void __cpu_die(unsigned int cpu);
|
H A D | mmu_context.h | 35 #define cpu_asid_cache(cpu) per_cpu(asid_cache, cpu) 70 static inline void get_new_mmu_context(struct mm_struct *mm, unsigned int cpu) argument 72 unsigned long asid = cpu_asid_cache(cpu); 81 cpu_asid_cache(cpu) = asid; 82 mm->context.asid[cpu] = asid; 83 mm->context.cpu = cpu; 86 static inline void get_mmu_context(struct mm_struct *mm, unsigned int cpu) argument 93 unsigned long asid = mm->context.asid[cpu]; 101 activate_context(struct mm_struct *mm, unsigned int cpu) argument 118 int cpu; local 129 unsigned int cpu = smp_processor_id(); local [all...] |
/linux-master/arch/arm/mach-meson/ |
H A D | platsmp.c | 38 static struct reset_control *meson_smp_get_core_reset(int cpu) argument 40 struct device_node *np = of_get_cpu_node(cpu, 0); 45 static void meson_smp_set_cpu_ctrl(int cpu, bool on_off) argument 50 val |= BIT(cpu); 52 val &= ~BIT(cpu); 116 static void meson_smp_begin_secondary_boot(unsigned int cpu) argument 125 sram_base + MESON_SMP_SRAM_CPU_CTRL_ADDR_REG(cpu)); 131 scu_cpu_power_enable(scu_base, cpu); 134 static int meson_smp_finalize_secondary_boot(unsigned int cpu) argument 139 while (readl(sram_base + MESON_SMP_SRAM_CPU_CTRL_ADDR_REG(cpu))) { 155 meson8_smp_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 211 meson8b_smp_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 295 meson8_smp_cpu_die(unsigned int cpu) argument 310 meson8_smp_cpu_kill(unsigned int cpu) argument 354 meson8b_smp_cpu_kill(unsigned int cpu) argument [all...] |
/linux-master/arch/loongarch/include/asm/ |
H A D | smp.h | 19 void (*send_ipi_single)(int cpu, unsigned int action); 33 void loongson_boot_secondary(int cpu, struct task_struct *idle); 38 void loongson_cpu_die(unsigned int cpu); 53 return current_thread_info()->cpu; 58 /* Map from cpu id to sequential logical cpu number. This will only 61 #define cpu_number_map(cpu) __cpu_number_map[cpu] 63 /* The reverse map from sequential logical cpu number to cpu i 92 arch_send_call_function_single_ipi(int cpu) argument 108 __cpu_die(unsigned int cpu) argument [all...] |
/linux-master/tools/perf/scripts/python/ |
H A D | stat-cpi.py | 10 def get_key(time, event, cpu, thread): 11 return "%d-%s-%d-%d" % (time, event, cpu, thread) 13 def store_key(time, cpu, thread): 17 if (cpu not in cpus): 18 cpus.append(cpu) 23 def store(time, event, cpu, thread, val, ena, run): 24 #print("event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" % 25 # (event, cpu, thread, time, val, ena, run)) 27 store_key(time, cpu, thread) 28 key = get_key(time, event, cpu, threa [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | smp.h | 30 void (*smp_send_reschedule)(int cpu); 32 void (*cleanup_dead_cpu)(unsigned cpu); 34 int (*kick_ap_alive)(unsigned cpu, struct task_struct *tidle); 36 void (*cpu_die)(unsigned int cpu); 40 void (*send_call_func_single_ipi)(int cpu); 44 extern void set_cpu_sibling_map(int cpu); 74 static inline void __cpu_die(unsigned int cpu) argument 77 smp_ops.cpu_die(cpu); 86 static inline void arch_smp_send_reschedule(int cpu) argument 88 smp_ops.smp_send_reschedule(cpu); 91 arch_send_call_function_single_ipi(int cpu) argument 144 cpu_llc_shared_mask(int cpu) argument 149 cpu_l2c_shared_mask(int cpu) argument 162 cpu_llc_shared_mask(int cpu) argument [all...] |
/linux-master/arch/arm/mach-bcm/ |
H A D | platsmp-brcmstb.c | 59 static int per_cpu_sw_state_rd(u32 cpu) argument 61 sync_cache_r(SHIFT_PERCPU_PTR(&per_cpu_sw_state, per_cpu_offset(cpu))); 62 return per_cpu(per_cpu_sw_state, cpu); 65 static void per_cpu_sw_state_wr(u32 cpu, int val) argument 68 per_cpu(per_cpu_sw_state, cpu) = val; 69 sync_cache_w(SHIFT_PERCPU_PTR(&per_cpu_sw_state, per_cpu_offset(cpu))); 72 static inline void per_cpu_sw_state_wr(u32 cpu, int val) { } argument 75 static void __iomem *pwr_ctrl_get_base(u32 cpu) argument 78 base += (cpu_logical_map(cpu) * 4); 82 static u32 pwr_ctrl_rd(u32 cpu) argument 88 pwr_ctrl_set(unsigned int cpu, u32 val, u32 mask) argument 94 pwr_ctrl_clr(unsigned int cpu, u32 val, u32 mask) argument 101 pwr_ctrl_wait_tmout(unsigned int cpu, u32 set, u32 mask) argument 119 cpu_rst_cfg_set(u32 cpu, int set) argument 130 cpu_set_boot_addr(u32 cpu, unsigned long boot_addr) argument 137 brcmstb_cpu_boot(u32 cpu) argument 152 brcmstb_cpu_power_on(u32 cpu) argument 176 brcmstb_cpu_get_power_state(u32 cpu) argument 184 brcmstb_cpu_die(u32 cpu) argument 198 brcmstb_cpu_kill(u32 cpu) argument 339 brcmstb_boot_secondary(unsigned int cpu, struct task_struct *idle) argument [all...] |