Home
last modified time | relevance | path

Searched refs:ncpu (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/arch/mips/kernel/
Dsmp-mt.c47 unsigned int ncpu) in smvp_vpe_init() argument
50 return ncpu; in smvp_vpe_init()
65 __cpu_number_map[tc] = ++ncpu; in smvp_vpe_init()
66 __cpu_logical_map[ncpu] = tc; in smvp_vpe_init()
75 cpu_set_vpe_id(&cpu_data[ncpu], tc); in smvp_vpe_init()
77 return ncpu; in smvp_vpe_init()
185 unsigned int mvpconf0, ntc, tc, ncpu = 0; in vsmp_smp_setup() local
215 ncpu = smvp_vpe_init(tc, mvpconf0, ncpu); in vsmp_smp_setup()
223 printk(KERN_INFO "Detected %i available secondary CPU(s)\n", ncpu); in vsmp_smp_setup()
Dsmp-cmp.c95 int ncpu = 0; in cmp_smp_setup() local
108 __cpu_number_map[i] = ++ncpu; in cmp_smp_setup()
109 __cpu_logical_map[ncpu] = i; in cmp_smp_setup()
122 pr_info("Detected %i available secondary CPU(s)\n", ncpu); in cmp_smp_setup()
/kernel/linux/linux-5.10/tools/perf/util/
Dsmt.c13 int ncpu; in smt_on() local
21 ncpu = sysconf(_SC_NPROCESSORS_CONF); in smt_on()
22 for (cpu = 0; cpu < ncpu; cpu++) { in smt_on()
/kernel/linux/linux-5.10/arch/mips/sgi-ip30/
Dip30-smp.c78 int ncpu = 0; in ip30_smp_setup() local
88 __cpu_number_map[i] = ++ncpu; in ip30_smp_setup()
89 __cpu_logical_map[ncpu] = i; in ip30_smp_setup()
94 pr_info("IP30: Detected %d CPU(s) present.\n", ncpu); in ip30_smp_setup()
/kernel/linux/linux-5.10/tools/memory-model/scripts/
Drunlitmushist.sh66 print "runtest " $2 >> t "/" NR % ncpu ".sh";
70 for (i = 0; i < ncpu; i++) {
/kernel/linux/linux-5.10/arch/powerpc/perf/
Dimc-pmu.c664 int ncpu; in ppc_core_imc_cpu_offline() local
689 ncpu = cpumask_last(cpu_sibling_mask(cpu)); in ppc_core_imc_cpu_offline()
691 if (unlikely(ncpu == cpu)) in ppc_core_imc_cpu_offline()
692 ncpu = cpumask_any_but(cpu_sibling_mask(cpu), cpu); in ppc_core_imc_cpu_offline()
694 if (ncpu >= 0 && ncpu < nr_cpu_ids) { in ppc_core_imc_cpu_offline()
695 cpumask_set_cpu(ncpu, &core_imc_cpumask); in ppc_core_imc_cpu_offline()
696 perf_pmu_migrate_context(&core_imc_pmu->pmu, cpu, ncpu); in ppc_core_imc_cpu_offline()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-sched.c278 u32 ncpu; /* highest cpu slot allocated */ member
1876 if ((cpu >= r->ncpu) || (r->last_time == NULL)) { in evsel__save_time()
1885 for (i = r->ncpu; i < n; ++i) in evsel__save_time()
1888 r->ncpu = n; in evsel__save_time()
1899 if ((r == NULL) || (r->last_time == NULL) || (cpu >= r->ncpu)) in evsel__get_time()
2217 static int init_idle_threads(int ncpu) in init_idle_threads() argument
2221 idle_threads = zalloc(ncpu * sizeof(struct thread *)); in init_idle_threads()
2225 idle_max_cpu = ncpu; in init_idle_threads()
2228 for (i = 0; i < ncpu; ++i) { in init_idle_threads()