/linux-master/include/linux/ |
H A D | smpboot.h | 13 * @store: Pointer to per cpu storage for the task pointers 25 * parked (cpu offline) 27 * unparked (cpu online) 34 int (*thread_should_run)(unsigned int cpu); 35 void (*thread_fn)(unsigned int cpu); 36 void (*create)(unsigned int cpu); 37 void (*setup)(unsigned int cpu); 38 void (*cleanup)(unsigned int cpu, bool online); 39 void (*park)(unsigned int cpu); 40 void (*unpark)(unsigned int cpu); [all...] |
H A D | arch_topology.h | 3 * include/linux/arch_topology.h - arch specific cpu topology information 19 bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu); 23 static inline unsigned long topology_get_cpu_scale(int cpu) argument 25 return per_cpu(cpu_scale, cpu); 28 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity); 32 static inline unsigned long topology_get_freq_ref(int cpu) argument 34 return per_cpu(capacity_freq_ref, cpu); 39 static inline unsigned long topology_get_freq_scale(int cpu) argument 41 return per_cpu(arch_freq_scale, cpu); 65 static inline unsigned long topology_get_hw_pressure(int cpu) argument [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | topology.h | 9 struct cpu; 29 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 30 #define topology_thread_id(cpu) (cpu_topology[cpu].thread_id) 31 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_mask) 32 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 33 #define topology_core_cpumask(cpu) ( 56 topology_cpu_init(struct cpu *cpu) argument 75 cpu_to_node(int cpu) argument [all...] |
H A D | abs_lowcore.h | 11 int abs_lowcore_map(int cpu, struct lowcore *lc, bool alloc); 12 void abs_lowcore_unmap(int cpu); 16 int cpu; local 18 cpu = get_cpu(); 19 return ((struct lowcore *)__abs_lowcore) + cpu;
|
H A D | smp.h | 22 extern int __cpu_up(unsigned int cpu, struct task_struct *tidle); 24 extern void arch_send_call_function_single_ipi(int cpu); 32 extern int smp_store_status(int cpu); 35 extern void smp_yield_cpu(int cpu); 36 extern void smp_cpu_set_polarization(int cpu, int val); 37 extern int smp_cpu_get_polarization(int cpu); 38 extern int smp_cpu_get_cpu_address(int cpu); 53 static inline int smp_get_base_cpu(int cpu) argument 55 return cpu - (cpu [all...] |
/linux-master/kernel/ |
H A D | smpboot.h | 8 struct task_struct *idle_thread_get(unsigned int cpu); 12 static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } argument 17 int smpboot_create_threads(unsigned int cpu); 18 int smpboot_park_threads(unsigned int cpu); 19 int smpboot_unpark_threads(unsigned int cpu);
|
H A D | watchdog_buddy.c | 3 #include <linux/cpu.h> 11 static unsigned int watchdog_next_cpu(unsigned int cpu) argument 15 next_cpu = cpumask_next(cpu, &watchdog_cpus); 19 if (next_cpu == cpu) 30 void watchdog_hardlockup_enable(unsigned int cpu) argument 42 watchdog_hardlockup_touch_cpu(cpu); 50 next_cpu = watchdog_next_cpu(cpu); 61 cpumask_set_cpu(cpu, &watchdog_cpus); 64 void watchdog_hardlockup_disable(unsigned int cpu) argument 66 unsigned int next_cpu = watchdog_next_cpu(cpu); [all...] |
/linux-master/arch/arm/mach-zynq/ |
H A D | common.h | 14 extern void zynq_slcr_cpu_stop(int cpu); 15 extern void zynq_slcr_cpu_start(int cpu); 16 extern bool zynq_slcr_cpu_state_read(int cpu); 17 extern void zynq_slcr_cpu_state_write(int cpu, bool die); 24 extern int zynq_cpun_start(u32 address, int cpu);
|
/linux-master/arch/arm/mach-tegra/ |
H A D | platsmp.c | 36 static void tegra_secondary_init(unsigned int cpu) argument 38 cpumask_set_cpu(cpu, &tegra_cpu_init_mask); 42 static int tegra20_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 44 cpu = cpu_logical_map(cpu); 54 tegra_put_cpu_in_reset(cpu); 62 flowctrl_write_cpu_halt(cpu, 0); 64 tegra_enable_cpu_clock(cpu); 65 flowctrl_write_cpu_csr(cpu, 0); /* Clear flow controller CSR. */ 66 tegra_cpu_out_of_reset(cpu); 70 tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 129 tegra114_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 158 tegra_boot_secondary(unsigned int cpu, struct task_struct *idle) argument [all...] |
/linux-master/tools/lib/api/ |
H A D | cpu.c | 4 #include "cpu.h" 10 int cpu; local 12 if (sysfs__read_int("devices/system/cpu/online", &cpu) < 0) 16 "devices/system/cpu/cpu%d/cpufreq/cpuinfo_max_freq", cpu);
|
/linux-master/arch/arm/include/asm/ |
H A D | cpu.h | 3 * arch/arm/include/asm/cpu.h 11 #include <linux/cpu.h> 14 struct cpu cpu; member in struct:cpuinfo_arm
|
/linux-master/arch/powerpc/include/asm/ |
H A D | fsl_pm.h | 25 void (*irq_mask)(int cpu); 28 void (*irq_unmask)(int cpu); 29 void (*cpu_enter_state)(int cpu, int state); 30 void (*cpu_exit_state)(int cpu, int state); 31 void (*cpu_up_prepare)(int cpu); 32 void (*cpu_die)(int cpu);
|
H A D | smp.h | 35 extern int cpu_to_chip_id(int cpu); 45 void (*message_pass)(int cpu, int msg); 47 void (*cause_ipi)(int cpu); 49 int (*cause_nmi_ipi)(int cpu); 68 extern int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us); 69 extern int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us); 79 void generic_cpu_die(unsigned int cpu); 80 void generic_set_cpu_dead(unsigned int cpu); 81 void generic_set_cpu_up(unsigned int cpu); 82 int generic_check_cpu_restart(unsigned int cpu); 98 get_hard_smp_processor_id(int cpu) argument 103 set_hard_smp_processor_id(int cpu, int phys) argument 114 cpu_sibling_mask(int cpu) argument 119 cpu_core_mask(int cpu) argument 124 cpu_l2_cache_mask(int cpu) argument 129 cpu_smallcore_mask(int cpu) argument 142 cpu_smt_mask(int cpu) argument 194 cpu_sibling_mask(int cpu) argument 199 cpu_smallcore_mask(int cpu) argument 204 cpu_l2_cache_mask(int cpu) argument 211 get_hard_smp_processor_id(int cpu) argument 216 set_hard_smp_processor_id(int cpu, int phys) argument 224 get_hard_smp_processor_id(int cpu) argument 229 set_hard_smp_processor_id(int cpu, int phys) argument [all...] |
H A D | cputhreads.h | 41 int cpu_core_index_of_thread(int cpu); 44 static inline int cpu_core_index_of_thread(int cpu) { return cpu; } argument 48 static inline int cpu_thread_in_core(int cpu) argument 50 return cpu & (threads_per_core - 1); 53 static inline int cpu_thread_in_subcore(int cpu) argument 55 return cpu & (threads_per_subcore - 1); 58 static inline int cpu_first_thread_sibling(int cpu) argument 60 return cpu & ~(threads_per_core - 1); 63 static inline int cpu_last_thread_sibling(int cpu) argument 74 cpu_first_tlb_thread_sibling(int cpu) argument 82 cpu_last_tlb_thread_sibling(int cpu) argument [all...] |
/linux-master/arch/arm/mach-imx/ |
H A D | hotplug.c | 21 void imx_cpu_die(unsigned int cpu) argument 25 * We use the cpu jumping argument register to sync with 27 * the register being cleared to kill the cpu. 29 imx_set_cpu_arg(cpu, ~0); 35 int imx_cpu_kill(unsigned int cpu) argument 39 while (imx_get_cpu_arg(cpu) == 0) 42 imx_enable_cpu(cpu, false); 43 imx_set_cpu_arg(cpu, 0);
|
/linux-master/arch/arm64/include/asm/ |
H A D | smp_plat.h | 30 * Retrieve logical cpu index corresponding to a given MPIDR.Aff* 33 * Returns the cpu logical index or -EINVAL on look-up error 37 int cpu; local 38 for (cpu = 0; cpu < nr_cpu_ids; cpu++) 39 if (cpu_logical_map(cpu) == mpidr) 40 return cpu;
|
/linux-master/include/trace/events/ |
H A D | hw_pressure.h | 11 TP_PROTO(int cpu, unsigned long hw_pressure), 12 TP_ARGS(cpu, hw_pressure), 16 __field(int, cpu) 21 __entry->cpu = cpu; 24 TP_printk("cpu=%d hw_pressure=%lu", __entry->cpu, __entry->hw_pressure)
|
/linux-master/arch/microblaze/kernel/cpu/ |
H A D | cpuinfo-static.c | 23 void __init set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu) argument 28 (fcpu(cpu, "xlnx,use-barrel") ? PVR0_USE_BARREL_MASK : 0) | 29 (fcpu(cpu, "xlnx,use-msr-instr") ? PVR2_USE_MSR_INSTR : 0) | 30 (fcpu(cpu, "xlnx,use-pcmp-instr") ? PVR2_USE_PCMP_INSTR : 0) | 31 (fcpu(cpu, "xlnx,use-div") ? PVR0_USE_DIV_MASK : 0); 43 ci->use_mult = fcpu(cpu, "xlnx,use-hw-mul"); 51 ci->use_fpu = fcpu(cpu, "xlnx,use-fpu"); 59 (fcpu(cpu, "xlnx,unaligned-exceptions") ? 61 (fcpu(cpu, "xlnx,ill-opcode-exception") ? 63 (fcpu(cpu, "xln [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | espfix.h | 13 extern void init_espfix_ap(int cpu); 15 static inline void init_espfix_ap(int cpu) { } argument
|
/linux-master/arch/openrisc/include/asm/ |
H A D | time.h | 19 extern void synchronise_count_master(int cpu); 20 extern void synchronise_count_slave(int cpu);
|
/linux-master/tools/testing/selftests/ftrace/test.d/ftrace/ |
H A D | func_hotplug.tc | 3 # description: ftrace - function trace across cpu hotplug 8 ls -d /sys/devices/system/cpu/cpu[0-9]* | wc -l 15 echo "We cannot test cpu hotplug in UP environment" 19 # Find online cpu 20 for i in /sys/devices/system/cpu/cpu[1-9]*; do 22 cpu=$i 27 if [ -z "$cpu" ]; then 28 echo "We cannot test cpu hotplu [all...] |
/linux-master/tools/testing/selftests/cpu-hotplug/ |
H A D | cpu-on-off-test.sh | 27 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then 28 echo $msg cpu hotplug is not supported >&2 33 online_cpus=`cat $SYSFS/devices/system/cpu/online` 37 echo "$msg: since there is only one cpu: $online_cpus" 41 present_cpus=`cat $SYSFS/devices/system/cpu/present` 47 offline_cpus=`cat $SYSFS/devices/system/cpu/offline` 63 for cpu in $SYSFS/devices/system/cpu/cpu*; d [all...] |
/linux-master/arch/loongarch/include/asm/ |
H A D | mmu_context.h | 24 static inline u64 asid_version_mask(unsigned int cpu) argument 26 return ~(u64)(cpu_asid_mask(&cpu_data[cpu])); 29 static inline u64 asid_first_version(unsigned int cpu) argument 31 return cpu_asid_mask(&cpu_data[cpu]) + 1; 34 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) 35 #define asid_cache(cpu) (cpu_data[cpu].asid_cache) 36 #define cpu_asid(cpu, mm) (cpu_context((cpu), (m 38 asid_valid(struct mm_struct *mm, unsigned int cpu) argument 52 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu) argument 80 unsigned int cpu = smp_processor_id(); local 128 drop_mmu_context(struct mm_struct *mm, unsigned int cpu) argument [all...] |
/linux-master/include/asm-generic/ |
H A D | numa.h | 18 void numa_clear_node(unsigned int cpu); 37 void __init early_map_cpu_to_node(unsigned int cpu, int nid); 38 int __init early_cpu_to_node(int cpu); 39 void numa_store_cpu_info(unsigned int cpu); 40 void numa_add_cpu(unsigned int cpu); 41 void numa_remove_cpu(unsigned int cpu); 45 static inline void numa_store_cpu_info(unsigned int cpu) { } argument 46 static inline void numa_add_cpu(unsigned int cpu) { } argument 47 static inline void numa_remove_cpu(unsigned int cpu) { } argument 49 static inline void early_map_cpu_to_node(unsigned int cpu, in argument 50 early_cpu_to_node(int cpu) argument [all...] |
/linux-master/arch/arc/include/asm/ |
H A D | mmu_context.h | 28 * ASID is managed per cpu, so task threads across CPUs can have different 49 #define asid_mm(mm, cpu) mm->context.asid[cpu] 50 #define hw_pid(mm, cpu) (asid_mm(mm, cpu) & MM_CTXT_ASID_MASK) 53 #define asid_cpu(cpu) per_cpu(asid_cache, cpu) 61 const unsigned int cpu = smp_processor_id(); local 69 * and cpu's ASID counter are exactly same. 76 if (!((asid_mm(mm, cpu) 135 const int cpu = smp_processor_id(); local [all...] |