Home
last modified time | relevance | path

Searched refs:NR_CPUS (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/linux-6.6.21/include/linux/
Drcu_node_tree.h54 #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)
Dcpumask.h19 typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
38 #if (NR_CPUS == 1) || defined(CONFIG_FORCE_NR_CPUS)
39 #define nr_cpu_ids ((unsigned int)NR_CPUS)
46 #if (NR_CPUS == 1) || defined(CONFIG_FORCE_NR_CPUS) in set_nr_cpu_ids()
77 #if NR_CPUS <= BITS_PER_LONG
78 #define small_cpumask_bits ((unsigned int)NR_CPUS)
79 #define large_cpumask_bits ((unsigned int)NR_CPUS)
80 #elif NR_CPUS <= 4*BITS_PER_LONG
82 #define large_cpumask_bits ((unsigned int)NR_CPUS)
231 #if NR_CPUS == 1
[all …]
Dblockgroup_lock.h14 #define NR_BG_LOCKS (4 << ilog2(NR_CPUS < 32 ? NR_CPUS : 32))
/linux-6.6.21/arch/powerpc/include/asm/
Dirq.h41 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-6.6.21/tools/testing/selftests/bpf/progs/
Dbpf_hashmap_lookup.c17 #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-6.6.21/tools/testing/selftests/fpu/
Drun_test_fpu.sh23 NR_CPUS=$(getconf _NPROCESSORS_ONLN)
24 if [ ! $NR_CPUS ]; then
25 NR_CPUS=1
41 for c in $(seq 1 $NR_CPUS); do
/linux-6.6.21/arch/ia64/kernel/
Derr_inject.c43 static u64 call_start[NR_CPUS];
44 static u64 phys_addr[NR_CPUS];
45 static u64 err_type_info[NR_CPUS];
46 static u64 err_struct_info[NR_CPUS];
51 } __attribute__((__aligned__(16))) err_data_buffer[NR_CPUS];
52 static s64 status[NR_CPUS];
53 static u64 capabilities[NR_CPUS];
54 static u64 resources[NR_CPUS];
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dhyp-smp.c17 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-6.6.21/arch/riscv/kernel/
Dcpu_ops_spinwait.c17 void *__cpu_spinwait_stack_pointer[NR_CPUS] __section(".data");
18 void *__cpu_spinwait_task_pointer[NR_CPUS] __section(".data");
32 if (hartid == INVALID_HARTID || hartid >= (unsigned long) NR_CPUS) in cpu_update_secondary_bootdata()
/linux-6.6.21/arch/sparc/include/asm/
Dtopology_64.h53 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-6.6.21/Documentation/translations/zh_CN/admin-guide/
Dcputopology.rst61 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-6.6.21/arch/ia64/include/asm/
Dsmp.h50 int cpu_phys_id[NR_CPUS];
55 extern cpumask_t cpu_core_map[NR_CPUS];
74 for (i = 0; i < NR_CPUS; ++i) in cpu_logical_id()
/linux-6.6.21/arch/arm/mach-shmobile/
Dheadsmp.S118 cmp r1, #NR_CPUS
141 .space NR_CPUS * 4
144 .space NR_CPUS * 4
147 .space NR_CPUS * 4
/linux-6.6.21/arch/sparc/kernel/
Dleon_smp.c54 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()
Dsmp_32.c42 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-6.6.21/arch/ia64/include/asm/native/
Dirq.h14 #if (NR_VECTORS + 32 * NR_CPUS) < 1024
15 #define IA64_NATIVE_NR_IRQS (NR_VECTORS + 32 * NR_CPUS)
/linux-6.6.21/arch/sh/kernel/
Dirq.c66 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-6.6.21/arch/powerpc/kernel/
Dirq.c338 void *critirq_ctx[NR_CPUS] __read_mostly;
339 void *dbgirq_ctx[NR_CPUS] __read_mostly;
340 void *mcheckirq_ctx[NR_CPUS] __read_mostly;
343 void *softirq_ctx[NR_CPUS] __read_mostly;
344 void *hardirq_ctx[NR_CPUS] __read_mostly;
/linux-6.6.21/tools/testing/selftests/arm64/fp/
Dza-stress8 NR_CPUS=`nproc`
42 for x in `seq 0 $((NR_CPUS * 4))`; do
Dssve-stress8 NR_CPUS=`nproc`
42 for x in `seq 0 $((NR_CPUS * 4))`; do
Dsve-stress8 NR_CPUS=`nproc`
42 for x in `seq 0 $((NR_CPUS * 4))`; do
Dfpsimd-stress8 NR_CPUS=`nproc`
43 for x in `seq 0 $((NR_CPUS * 4))`; do
/linux-6.6.21/arch/x86/kernel/
Dsetup_percpu.c35 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()
/linux-6.6.21/arch/powerpc/lib/
Dlocks.c29 BUG_ON(holder_cpu >= NR_CPUS); in splpar_spin_yield()
55 BUG_ON(holder_cpu >= NR_CPUS); in splpar_rw_yield()
/linux-6.6.21/arch/ia64/mm/
Dnuma.c29 struct node_cpuid_s node_cpuid[NR_CPUS] =
30 { [0 ... NR_CPUS-1] = { .phys_id = 0, .nid = NUMA_NO_NODE } };

12345678910>>...14