Home
last modified time | relevance | path

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

123456789

/openbmc/linux/arch/x86/include/asm/
H A Dsmp.h30 void (*smp_prepare_cpus)(unsigned max_cpus);
31 void (*smp_cpus_done)(unsigned max_cpus);
69 static inline void smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
71 smp_ops.smp_prepare_cpus(max_cpus); in smp_prepare_cpus()
74 static inline void smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
76 smp_ops.smp_cpus_done(max_cpus); in smp_cpus_done()
114 void native_smp_prepare_cpus(unsigned int max_cpus);
116 void native_smp_cpus_done(unsigned int max_cpus);
/openbmc/qemu/system/
H A Ddirtylimit.c66 int max_cpus; member
157 int max_cpus = ms->smp.max_cpus; in vcpu_dirty_rate_stat_initialize() local
162 vcpu_dirty_rate_stat->stat.nvcpu = max_cpus; in vcpu_dirty_rate_stat_initialize()
164 g_new0(DirtyRateVcpu, max_cpus); in vcpu_dirty_rate_stat_initialize()
202 int max_cpus = ms->smp.max_cpus; in dirtylimit_state_initialize() local
210 for (i = 0; i < max_cpus; i++) { in dirtylimit_state_initialize()
214 dirtylimit_state->max_cpus = max_cpus; in dirtylimit_state_initialize()
215 trace_dirtylimit_state_initialize(max_cpus); in dirtylimit_state_initialize()
239 cpu_index >= ms->smp.max_cpus); in dirtylimit_vcpu_index_valid()
401 int max_cpus = ms->smp.max_cpus; in dirtylimit_set_all() local
[all …]
/openbmc/linux/arch/arm/mach-mediatek/
H A 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()
/openbmc/qemu/hw/loongarch/
H A Dfw_cfg.c23 int max_cpus = ms->smp.max_cpus; in virt_fw_cfg_init() local
28 fw_cfg_add_i16(fw_cfg, FW_CFG_MAX_CPUS, (uint16_t)max_cpus); in virt_fw_cfg_init()
/openbmc/linux/arch/mips/kernel/
H A Dsmp-bmips.c42 static int __maybe_unused max_cpus = 1; variable
109 max_cpus = 2; in bmips_smp_setup()
120 max_cpus = (((read_c0_brcm_config() >> 6) & 0x03) + 1) << 1; in bmips_smp_setup()
123 for (i = 0; i < max_cpus; i++) { in bmips_smp_setup()
130 max_cpus = 1; in bmips_smp_setup()
134 max_cpus = 1; in bmips_smp_setup()
140 if (max_cpus > 1) { in bmips_smp_setup()
144 for (i = 0; i < max_cpus; i++) { in bmips_smp_setup()
164 static void bmips_prepare_cpus(unsigned int max_cpus) in bmips_prepare_cpus() argument
/openbmc/linux/arch/hexagon/kernel/
H A 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()
/openbmc/qemu/tests/unit/
H A Dtest-smp-parse.c47 .max_cpus = e, \
823 (ms->smp.max_cpus == expect_topo->max_cpus) && in check_parse()
932 mc->max_cpus = MAX_CPUS; in machine_base_class_init()
943 mc->max_cpus = MAX_CPUS - 1; in machine_generic_invalid_class_init()
1081 data.expect_prefer_cores.max_cpus *= num_modules; in test_with_modules()
1128 data.expect_prefer_sockets.max_cpus *= num_dies; in test_with_dies()
1131 data.expect_prefer_cores.max_cpus *= num_dies; in test_with_dies()
1289 data.expect_prefer_sockets.max_cpus *= num_books; in test_with_books()
1292 data.expect_prefer_cores.max_cpus *= num_books; in test_with_books()
1342 data.expect_prefer_cores.max_cpus *= num_drawers; in test_with_drawers()
[all …]
/openbmc/qemu/hw/riscv/
H A Dnuma.c229 unsigned int max_cpus = ms->smp.max_cpus; in riscv_numa_possible_cpu_arch_ids() local
232 assert(ms->possible_cpus->len == max_cpus); in riscv_numa_possible_cpu_arch_ids()
237 sizeof(CPUArchId) * max_cpus); in riscv_numa_possible_cpu_arch_ids()
238 ms->possible_cpus->len = max_cpus; in riscv_numa_possible_cpu_arch_ids()
/openbmc/linux/arch/arm/mach-shmobile/
H A 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()
H A Dsmp-r8a7779.c39 static void __init r8a7779_smp_prepare_cpus(unsigned int max_cpus) in r8a7779_smp_prepare_cpus() argument
47 shmobile_smp_scu_prepare_cpus(R8A7779_SCU_BASE, max_cpus); in r8a7779_smp_prepare_cpus()
H A Dsmp-sh73a0.c45 static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus) in sh73a0_smp_prepare_cpus() argument
57 shmobile_smp_scu_prepare_cpus(SH73A0_SCU_BASE, max_cpus); in sh73a0_smp_prepare_cpus()
/openbmc/qemu/accel/tcg/
H A Dtcg-all.c107 unsigned max_cpus = 1; in tcg_init_machine() local
109 unsigned max_cpus = ms->smp.max_cpus; in tcg_init_machine() local
117 tcg_init(s->tb_size * MiB, s->splitwx_enabled, max_cpus); in tcg_init_machine()
/openbmc/qemu/hw/core/
H A Dmachine-smp.c224 ms->smp.max_cpus = maxcpus; in machine_parse_smp_config()
255 if (ms->smp.max_cpus > mc->max_cpus) { in machine_parse_smp_config()
258 ms->smp.max_cpus, in machine_parse_smp_config()
259 mc->name, mc->max_cpus); in machine_parse_smp_config()
/openbmc/qemu/linux-user/alpha/
H A Dtarget_proc.h11 int max_cpus = sysconf(_SC_NPROCESSORS_CONF); in open_cpuinfo() local
61 max_cpus, num_cpus, cpu_mask); in open_cpuinfo()
/openbmc/linux/arch/x86/xen/
H A Dsmp_hvm.c37 static void __init xen_hvm_smp_prepare_cpus(unsigned int max_cpus) in xen_hvm_smp_prepare_cpus() argument
41 native_smp_prepare_cpus(max_cpus); in xen_hvm_smp_prepare_cpus()
/openbmc/linux/arch/arm/mach-sti/
H A 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()
/openbmc/qemu/tests/qtest/
H A Dfw_cfg-test.c22 static uint16_t max_cpus = 1; variable
131 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_MAX_CPUS), ==, max_cpus); in test_fw_cfg_max_cpus()
148 cpu_mask = g_new0(uint64_t, max_cpus); in test_fw_cfg_numa()
151 qfw_cfg_read_data(fw_cfg, cpu_mask, sizeof(uint64_t) * max_cpus); in test_fw_cfg_numa()
/openbmc/linux/arch/arm/mach-axxia/
H A Dplatsmp.c54 static void __init axxia_smp_prepare_cpus(unsigned int max_cpus) in axxia_smp_prepare_cpus() argument
73 if (cpu_count < max_cpus) { in axxia_smp_prepare_cpus()
/openbmc/linux/arch/riscv/kernel/
H A Dsmpboot.c47 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
61 if (max_cpus == 0) in smp_prepare_cpus()
226 void __init smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
/openbmc/qemu/target/s390x/
H A Dcpu-sysemu.c129 unsigned int max_cpus = ms->smp.max_cpus; in s390_cpu_realize_sysemu() local
131 if (cpu->env.core_id >= max_cpus) { in s390_cpu_realize_sysemu()
134 max_cpus - 1); in s390_cpu_realize_sysemu()
/openbmc/qemu/target/i386/kvm/
H A Dvmsr_energy.c126 unsigned int vmsr_get_max_physical_package(unsigned int max_cpus) in vmsr_get_max_physical_package() argument
130 g_autofree int *uniquePackages = g_new0(int, max_cpus); in vmsr_get_max_physical_package()
134 for (int i = 0; i < max_cpus; i++) { in vmsr_get_max_physical_package()
168 if (packageCount >= max_cpus) { in vmsr_get_max_physical_package()
/openbmc/linux/arch/arm/kernel/
H A Dsmp.c481 void __init smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument
503 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
514 if (max_cpus > ncores) in smp_prepare_cpus()
515 max_cpus = ncores; in smp_prepare_cpus()
516 if (ncores > 1 && max_cpus) { in smp_prepare_cpus()
530 smp_ops.smp_prepare_cpus(max_cpus); in smp_prepare_cpus()
/openbmc/qemu/hw/xtensa/
H A Dxtfpga.c590 mc->max_cpus = 32; in xtfpga_lx60_class_init()
607 mc->max_cpus = 32; in xtfpga_lx60_nommu_class_init()
624 mc->max_cpus = 32; in xtfpga_lx200_class_init()
641 mc->max_cpus = 32; in xtfpga_lx200_nommu_class_init()
658 mc->max_cpus = 32; in xtfpga_ml605_class_init()
675 mc->max_cpus = 32; in xtfpga_ml605_nommu_class_init()
692 mc->max_cpus = 32; in xtfpga_kc705_class_init()
709 mc->max_cpus = 32; in xtfpga_kc705_nommu_class_init()
/openbmc/qemu/hw/xen/
H A Dxen-hvm-common.c207 unsigned int max_cpus = ms->smp.max_cpus; in cpu_get_ioreq() local
219 for (i = 0; i < max_cpus; i++) { in cpu_get_ioreq()
225 if (i == max_cpus) { in cpu_get_ioreq()
791 unsigned int max_cpus, in xen_do_ioreq_register() argument
810 state->cpu_by_vcpu_id = g_new0(CPUState *, max_cpus); in xen_do_ioreq_register()
819 state->ioreq_local_port = g_new0(evtchn_port_t, max_cpus); in xen_do_ioreq_register()
822 for (i = 0; i < max_cpus; i++) { in xen_do_ioreq_register()
867 void xen_register_ioreq(XenIOState *state, unsigned int max_cpus, in xen_register_ioreq() argument
888 xen_do_ioreq_register(state, max_cpus, xen_memory_listener); in xen_register_ioreq()
/openbmc/linux/arch/openrisc/kernel/
H A Dsmp.c76 void __init smp_prepare_cpus(unsigned int max_cpus) in smp_prepare_cpus() argument
85 if (cpu < max_cpus) in smp_prepare_cpus()
90 void __init smp_cpus_done(unsigned int max_cpus) in smp_cpus_done() argument

123456789