/linux/include/linux/ |
H A D | rcu_node_tree.h | 54 #if NR_CPUS <= RCU_FANOUT_1 61 #elif NR_CPUS <= RCU_FANOUT_2 64 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) 69 #elif NR_CPUS <= RCU_FANOUT_3 72 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) 73 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) 78 #elif NR_CPUS <= RCU_FANOUT_4 81 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_3) 82 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) 83 # define NUM_RCU_LVL_3 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
|
H A D | blockgroup_lock.h | 14 #define NR_BG_LOCKS (4 << ilog2(NR_CPUS < 32 ? NR_CPUS : 32))
|
/linux/arch/powerpc/include/asm/ |
H A D | irq.h | 41 extern void *critirq_ctx[NR_CPUS]; 42 extern void *dbgirq_ctx[NR_CPUS]; 43 extern void *mcheckirq_ctx[NR_CPUS]; 49 extern void *hardirq_ctx[NR_CPUS]; 50 extern void *softirq_ctx[NR_CPUS];
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_hashmap_lookup.c | 17 #define NR_CPUS 256 macro 18 #define CPU_MASK (NR_CPUS-1) 23 u32 __attribute__((__aligned__(8))) key[NR_CPUS]; 26 u64 __attribute__((__aligned__(256))) percpu_times_index[NR_CPUS]; 27 u64 __attribute__((__aligned__(256))) percpu_times[NR_CPUS][NR_SLOTS];
|
/linux/tools/testing/selftests/fpu/ |
H A D | run_test_fpu.sh | 23 NR_CPUS=$(getconf _NPROCESSORS_ONLN) 24 if [ ! $NR_CPUS ]; then 25 NR_CPUS=1 41 for c in $(seq 1 $NR_CPUS); do
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | hyp-smp.c | 17 u64 __ro_after_init hyp_cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = INVALID_HWID }; 26 unsigned long __ro_after_init kvm_arm_hyp_percpu_base[NR_CPUS];
|
/linux/arch/sparc/include/asm/ |
H A D | topology_64.h | 53 extern cpumask_t cpu_core_map[NR_CPUS]; 54 extern cpumask_t cpu_core_sib_map[NR_CPUS]; 55 extern cpumask_t cpu_core_sib_cache_map[NR_CPUS];
|
/linux/Documentation/translations/zh_CN/admin-guide/ |
H A D | cputopology.rst | 61 kernel_max: 内核配置允许的最大CPU下标值。[NR_CPUS-1] 64 导致未上线的CPU。[~cpu_online_mask + cpus >= NR_CPUS] 76 在本例中,系统中有64个CPU,但是CPU 32-63超过了kernel_max值,因为NR_CPUS配置项是32, 86 在本例中,NR_CPUS配置项是128,但内核启动时设置possible_cpus=144。系统中有4个CPU,
|
/linux/Documentation/translations/zh_TW/admin-guide/ |
H A D | cputopology.rst | 61 kernel_max: 內核配置允許的最大CPU下標值。[NR_CPUS-1] 64 導致未上線的CPU。[~cpu_online_mask + cpus >= NR_CPUS] 76 在本例中,系統中有64個CPU,但是CPU 32-63超過了kernel_max值,因爲NR_CPUS配置項是32, 86 在本例中,NR_CPUS配置項是128,但內核啓動時設置possible_cpus=144。系統中有4個CPU,
|
/linux/tools/testing/selftests/bpf/ |
H A D | bpf_arena_alloc.h | 14 #define NR_CPUS (sizeof(struct cpumask) * 8) macro 16 static void __arena * __arena page_frag_cur_page[NR_CPUS]; 17 static int __arena page_frag_cur_offset[NR_CPUS];
|
/linux/arch/arm/mach-shmobile/ |
H A D | headsmp.S | 118 cmp r1, #NR_CPUS 141 .space NR_CPUS * 4 144 .space NR_CPUS * 4 147 .space NR_CPUS * 4
|
/linux/arch/sparc/kernel/ |
H A D | leon_smp.c | 54 extern volatile unsigned long cpu_callin_map[NR_CPUS]; 167 (unsigned int)nrcpu, (unsigned int)NR_CPUS, in leon_boot_cpus() 237 for (i = 0; i < NR_CPUS; i++) { in leon_smp_done() 368 unsigned long processors_in[NR_CPUS]; /* Set when ipi entered. */ 369 unsigned long processors_out[NR_CPUS]; /* Set when ipi exited. */ 380 register int high = NR_CPUS - 1; in leon_cross_call()
|
H A D | smp_32.c | 42 volatile unsigned long cpu_callin_map[NR_CPUS] = {0,}; 185 if (cpuid >= NR_CPUS) in smp_prepare_cpus() 229 if (mid < NR_CPUS) { in smp_setup_cpu_possible_map() 241 if (cpuid >= NR_CPUS) { in smp_prepare_boot_cpu()
|
/linux/arch/sh/kernel/ |
H A D | irq.c | 66 static union irq_ctx *hardirq_ctx[NR_CPUS] __read_mostly; 67 static union irq_ctx *softirq_ctx[NR_CPUS] __read_mostly; 69 static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss; 70 static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
|
/linux/arch/powerpc/kernel/ |
H A D | irq.c | 337 void *critirq_ctx[NR_CPUS] __read_mostly; 338 void *dbgirq_ctx[NR_CPUS] __read_mostly; 339 void *mcheckirq_ctx[NR_CPUS] __read_mostly; 342 void *softirq_ctx[NR_CPUS] __read_mostly; 343 void *hardirq_ctx[NR_CPUS] __read_mostly;
|
/linux/tools/testing/selftests/arm64/fp/ |
H A D | ssve-stress | 8 NR_CPUS=`nproc` 42 for x in `seq 0 $((NR_CPUS * 4))`; do
|
H A D | za-stress | 8 NR_CPUS=`nproc` 42 for x in `seq 0 $((NR_CPUS * 4))`; do
|
H A D | sve-stress | 8 NR_CPUS=`nproc` 42 for x in `seq 0 $((NR_CPUS * 4))`; do
|
H A D | fpsimd-stress | 8 NR_CPUS=`nproc` 43 for x in `seq 0 $((NR_CPUS * 4))`; do
|
/linux/arch/powerpc/lib/ |
H A D | locks.c | 29 BUG_ON(holder_cpu >= NR_CPUS); in splpar_spin_yield() 55 BUG_ON(holder_cpu >= NR_CPUS); in splpar_rw_yield()
|
/linux/arch/x86/kernel/ |
H A D | setup_percpu.c | 35 unsigned long __per_cpu_offset[NR_CPUS] __ro_after_init = { 36 [0 ... NR_CPUS-1] = BOOT_PERCPU_OFFSET, 123 NR_CPUS, nr_cpumask_bits, nr_cpu_ids, nr_node_ids); in setup_per_cpu_areas()
|
H A D | cpuid.c | 155 if (__register_chrdev(CPUID_MAJOR, 0, NR_CPUS, in cpuid_init() 176 __unregister_chrdev(CPUID_MAJOR, 0, NR_CPUS, "cpu/cpuid"); in cpuid_init() 185 __unregister_chrdev(CPUID_MAJOR, 0, NR_CPUS, "cpu/cpuid"); in cpuid_exit()
|
/linux/arch/alpha/kernel/ |
H A D | smp.c | 55 struct cpuinfo_alpha cpu_data[NR_CPUS]; 61 } ipi_data[NR_CPUS] __cacheline_aligned; 247 for (i = 0; i < NR_CPUS; i++) { in recv_secondary_console_msg() 485 for(cpu = 0; cpu < NR_CPUS; cpu++) in smp_cpus_done() 643 for (cpu = 0; cpu < NR_CPUS; cpu++) { in flush_tlb_mm() 690 for (cpu = 0; cpu < NR_CPUS; cpu++) { in flush_tlb_page() 744 for (cpu = 0; cpu < NR_CPUS; cpu++) { in flush_icache_user_page()
|
/linux/arch/sh/include/asm/ |
H A D | smp.h | 18 extern int __cpu_number_map[NR_CPUS]; 22 extern int __cpu_logical_map[NR_CPUS];
|
/linux/drivers/acpi/ |
H A D | acpi_pad.c | 89 static unsigned long cpu_weight[NR_CPUS]; 90 static int tsk_in_cpu[NR_CPUS] = {[0 ... NR_CPUS-1] = -1}; 91 static DECLARE_BITMAP(pad_busy_cpus_bits, NR_CPUS); 222 static struct task_struct *ps_tsks[NR_CPUS];
|