Home
last modified time | relevance | path

Searched refs:max_cpus (Results 1 – 25 of 101) sorted by relevance

12345

/kernel/linux/build/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/
Dcpuisolation01.sh32 echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/max_cpus
42 max_cpus_value=$(cat $max_cpus)
44 max_cpus_value_backup=$(cat $max_cpus)
46 echo $max_value > $max_cpus
51 max_cpus_value=$(cat $max_cpus)
89 echo ${max_cpus_value_backup} > $max_cpus
110 local max_cpus=${dir_name}/max_cpus
119 && -e "${max_cpus}" && -e "${min_cpus}" && -e "${need_cpus}" ]]; then
Dcpuisolation05.sh55 echo 1 /sys/devices/system/cpu/cpu0/core_ctl/max_cpus
56 echo $((RANDOM %4 + 1)) /sys/devices/system/cpu/cpu0/core_ctl/max_cpus
77 echo 4 /sys/devices/system/cpu/cpu0/core_ctl/max_cpus
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dsmp.h38 void (*smp_prepare_cpus)(unsigned max_cpus);
39 void (*smp_cpus_done)(unsigned max_cpus);
75 static inline void smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
77 smp_ops.smp_prepare_cpus(max_cpus); in smp_prepare_cpus()
80 static inline void smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
82 smp_ops.smp_cpus_done(max_cpus); in smp_cpus_done()
122 void native_smp_prepare_cpus(unsigned int max_cpus);
124 void native_smp_cpus_done(unsigned int max_cpus);
/kernel/linux/linux-5.10/arch/arm/mach-mediatek/
Dplatsmp.c77 static void __init __mtk_smp_prepare_cpus(unsigned int max_cpus, int trustzone) in __mtk_smp_prepare_cpus() argument
123 static void __init mtk_tz_smp_prepare_cpus(unsigned int max_cpus) in mtk_tz_smp_prepare_cpus() argument
125 __mtk_smp_prepare_cpus(max_cpus, 1); in mtk_tz_smp_prepare_cpus()
128 static void __init mtk_smp_prepare_cpus(unsigned int max_cpus) in mtk_smp_prepare_cpus() argument
130 __mtk_smp_prepare_cpus(max_cpus, 0); in mtk_smp_prepare_cpus()
/kernel/linux/linux-5.10/arch/mips/kernel/
Dsmp-bmips.c41 static int __maybe_unused max_cpus = 1; variable
106 max_cpus = 2; in bmips_smp_setup()
117 max_cpus = (((read_c0_brcm_config() >> 6) & 0x03) + 1) << 1; in bmips_smp_setup()
120 for (i = 0; i < max_cpus; i++) { in bmips_smp_setup()
127 max_cpus = 1; in bmips_smp_setup()
131 max_cpus = 1; in bmips_smp_setup()
140 for (i = 0; i < max_cpus; i++) { in bmips_smp_setup()
154 static void bmips_prepare_cpus(unsigned int max_cpus) in bmips_prepare_cpus() argument
Dsmp-cmp.c125 void __init cmp_prepare_cpus(unsigned int max_cpus) in cmp_prepare_cpus() argument
128 smp_processor_id(), __func__, max_cpus); in cmp_prepare_cpus()
/kernel/linux/linux-5.10/arch/hexagon/kernel/
Dsmp.c195 void __init smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
199 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
209 for (i = 0; i < max_cpus; i++) in smp_prepare_cpus()
213 if (max_cpus > 1) { in smp_prepare_cpus()
/kernel/linux/linux-5.10/arch/riscv/kernel/
Dsmpboot.c44 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
50 if (max_cpus == 0) in smp_prepare_cpus()
137 void __init smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/
Dsmp-emev2.c30 static void __init emev2_smp_prepare_cpus(unsigned int max_cpus) in emev2_smp_prepare_cpus() argument
42 shmobile_smp_scu_prepare_cpus(EMEV2_SCU_BASE, max_cpus); in emev2_smp_prepare_cpus()
Dsmp-sh73a0.c39 static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus) in sh73a0_smp_prepare_cpus() argument
46 shmobile_smp_scu_prepare_cpus(SH73A0_SCU_BASE, max_cpus); in sh73a0_smp_prepare_cpus()
Dsmp-r8a7779.c37 static void __init r8a7779_smp_prepare_cpus(unsigned int max_cpus) in r8a7779_smp_prepare_cpus() argument
43 shmobile_smp_scu_prepare_cpus(R8A7779_SCU_BASE, max_cpus); in r8a7779_smp_prepare_cpus()
/kernel/linux/linux-5.10/kernel/sched/
Dcore_ctl.c29 unsigned int max_cpus; member
93 state->min_cpus = min(val, state->max_cpus); in store_min_cpus()
113 state->max_cpus = val; in store_max_cpus()
114 state->min_cpus = min(state->min_cpus, state->max_cpus); in store_max_cpus()
122 return sysfs_emit(buf, "%u\n", state->max_cpus); in show_max_cpus()
224 core_ctl_attr_rw(max_cpus);
232 &max_cpus.attr,
503 return min(max(cluster->min_cpus, need_cpus), cluster->max_cpus); in apply_limits()
540 need_cpus = cluster->max_cpus; in eval_need()
757 if (cluster->active_cpus <= cluster->max_cpus) in try_to_isolate()
[all …]
/kernel/linux/linux-5.10/arch/x86/xen/
Dsmp_hvm.c31 static void __init xen_hvm_smp_prepare_cpus(unsigned int max_cpus) in xen_hvm_smp_prepare_cpus() argument
35 native_smp_prepare_cpus(max_cpus); in xen_hvm_smp_prepare_cpus()
/kernel/linux/linux-5.10/arch/arm/mach-sti/
Dplatsmp.c49 static void __init sti_smp_prepare_cpus(unsigned int max_cpus) in sti_smp_prepare_cpus() argument
64 if (max_cpus <= 1) in sti_smp_prepare_cpus()
/kernel/linux/linux-5.10/arch/arm/mach-axxia/
Dplatsmp.c53 static void __init axxia_smp_prepare_cpus(unsigned int max_cpus) in axxia_smp_prepare_cpus() argument
72 if (cpu_count < max_cpus) { in axxia_smp_prepare_cpus()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsmp.c472 void __init smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
494 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
505 if (max_cpus > ncores) in smp_prepare_cpus()
506 max_cpus = ncores; in smp_prepare_cpus()
507 if (ncores > 1 && max_cpus) { in smp_prepare_cpus()
521 smp_ops.smp_prepare_cpus(max_cpus); in smp_prepare_cpus()
/kernel/linux/linux-5.10/arch/arm/mach-imx/
Dplatsmp.c69 static void __init imx_smp_prepare_cpus(unsigned int max_cpus) in imx_smp_prepare_cpus() argument
104 static void __init ls1021a_smp_prepare_cpus(unsigned int max_cpus) in ls1021a_smp_prepare_cpus() argument
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/
Dkvm.sh84 max_cpus=$TORTURE_ALLOTED_CPUS
108 max_cpus="`identify_qemu_vcpus`"
109 if test "$TORTURE_ALLOTED_CPUS" -gt "$max_cpus"
111 TORTURE_ALLOTED_CPUS=$max_cpus
/kernel/linux/linux-5.10/arch/openrisc/kernel/
Dsmp.c69 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
77 for (i = 0; i < max_cpus; i++) in smp_prepare_cpus()
81 void __init smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dsmp_32.c76 void __init smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
182 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
194 if (extra && max_cpus > i - extra) in smp_prepare_cpus()
/kernel/linux/linux-5.10/arch/arm/mach-rockchip/
Dplatsmp.c258 static void __init rockchip_smp_prepare_cpus(unsigned int max_cpus) in rockchip_smp_prepare_cpus() argument
326 static void __init rk3036_smp_prepare_cpus(unsigned int max_cpus) in rk3036_smp_prepare_cpus() argument
330 rockchip_smp_prepare_cpus(max_cpus); in rk3036_smp_prepare_cpus()
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2/
Dsmp-j2.c43 static void j2_prepare_cpus(unsigned int max_cpus) in j2_prepare_cpus() argument
69 max = max_cpus; in j2_prepare_cpus()
/kernel/linux/linux-5.10/tools/testing/selftests/intel_pstate/
Drun.sh47 max_cpus=$(($(nproc)-1))
52 for cpu in `seq 0 $max_cpus`
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4a/
Dsmp-shx3.c69 static void shx3_prepare_cpus(unsigned int max_cpus) in shx3_prepare_cpus() argument
80 for (i = 0; i < max_cpus; i++) in shx3_prepare_cpus()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dsmp.c410 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
419 parisc_max_cpus = max_cpus; in smp_prepare_cpus()
420 if (!max_cpus) in smp_prepare_cpus()

12345