Searched refs:max_cpus (Results 1 – 14 of 14) sorted by relevance
/xen/tools/libacpi/ |
A D | mk_dsdt.c | 116 unsigned int cpu, max_cpus; in main() local 121 max_cpus = HVM_MAX_VCPUS; in main() 123 max_cpus = GUEST_MAX_VCPUS; in main() 141 max_cpus = i; in main() 197 for ( cpu = 0; cpu < max_cpus; cpu++) in main() 255 indent(); printf("PRS, %u\n", max_cpus); in main() 261 for ( cpu = 0; cpu < max_cpus; cpu++ ) in main()
|
/xen/tools/libxc/ |
A D | xc_misc.c | 26 static int max_cpus = 0; in xc_get_max_cpus() local 29 if ( max_cpus ) in xc_get_max_cpus() 30 return max_cpus; in xc_get_max_cpus() 34 max_cpus = physinfo.max_cpu_id + 1; in xc_get_max_cpus() 35 return max_cpus; in xc_get_max_cpus() 70 int max_cpus = xc_get_max_cpus(xch); in xc_get_cpumap_size() local 72 if ( max_cpus < 0 ) in xc_get_cpumap_size() 74 return (max_cpus + 7) / 8; in xc_get_cpumap_size() 242 sysctl.u.cputopoinfo.num_cpus = *max_cpus; in xc_cputopoinfo() 250 *max_cpus = sysctl.u.cputopoinfo.num_cpus; in xc_cputopoinfo() [all …]
|
/xen/tools/misc/ |
A D | xenpm.c | 413 unsigned max_cpus = 0; in signal_int_handler() local 422 cputopo = calloc(max_cpus, sizeof(*cputopo)); in signal_int_handler() 514 if ( max_cpus > MAX_NR_CPU ) in signal_int_handler() 515 max_cpus = MAX_NR_CPU; in signal_int_handler() 517 for ( i = 0; i < max_cpus; i++ ) in signal_int_handler() 523 if ( i >= max_cpus ) in signal_int_handler() 526 for ( i = 0; i < max_cpus; i++ ) in signal_int_handler() 553 for ( j = 0; j < max_cpus; j++ ) in signal_int_handler() 1018 unsigned max_cpus = 0; in cpu_topology_func() local 1029 cputopo = calloc(max_cpus, sizeof(*cputopo)); in cpu_topology_func() [all …]
|
/xen/xen/arch/x86/ |
A D | mpparse.c | 72 void __init set_nr_cpu_ids(unsigned int max_cpus) in set_nr_cpu_ids() argument 76 if (!max_cpus) in set_nr_cpu_ids() 77 max_cpus = tot_cpus; in set_nr_cpu_ids() 78 if (max_cpus > NR_CPUS) in set_nr_cpu_ids() 79 max_cpus = NR_CPUS; in set_nr_cpu_ids() 80 else if (!max_cpus) in set_nr_cpu_ids() 81 max_cpus = 1; in set_nr_cpu_ids() 83 max_cpus, max_t(int, max_cpus - num_processors, 0)); in set_nr_cpu_ids() 86 tot_cpus = max_cpus; in set_nr_cpu_ids()
|
A D | setup.c | 63 static unsigned int __initdata max_cpus; variable 64 integer_param("maxcpus", max_cpus); 1706 max_cpus = 0; in __start_xen() 1710 max_cpus = 0; in __start_xen() 1715 set_nr_cpu_ids(max_cpus); in __start_xen() 1716 if ( !max_cpus ) in __start_xen() 1717 max_cpus = nr_cpu_ids; in __start_xen() 1849 if ( (park_offline_cpus || num_online_cpus() < max_cpus) && in __start_xen() 1855 else if ( num_online_cpus() > max_cpus || in __start_xen()
|
/xen/tools/libxl/ |
A D | libxl_utils.c | 807 int libxl_cpu_bitmap_alloc(libxl_ctx *ctx, libxl_bitmap *cpumap, int max_cpus) in libxl_cpu_bitmap_alloc() argument 812 if (max_cpus < 0) { in libxl_cpu_bitmap_alloc() 817 if (max_cpus == 0) in libxl_cpu_bitmap_alloc() 818 max_cpus = libxl_get_max_cpus(ctx); in libxl_cpu_bitmap_alloc() 819 if (max_cpus < 0) { in libxl_cpu_bitmap_alloc() 821 rc = max_cpus; in libxl_cpu_bitmap_alloc() 825 libxl_bitmap_alloc(ctx, cpumap, max_cpus); in libxl_cpu_bitmap_alloc() 998 int max_cpus = xc_get_max_cpus(ctx->xch); in libxl_get_max_cpus() local 1000 return max_cpus < 0 ? ERROR_FAIL : max_cpus; in libxl_get_max_cpus()
|
A D | libxl_utils.h | 157 int libxl_cpu_bitmap_alloc(libxl_ctx *ctx, libxl_bitmap *cpumap, int max_cpus);
|
/xen/xen/arch/arm/ |
A D | smpboot.c | 283 int i, max_cpus = 0; in smp_get_max_cpus() local 287 max_cpus++; in smp_get_max_cpus() 289 return max_cpus; in smp_get_max_cpus()
|
/xen/xen/include/asm-x86/ |
A D | setup.h | 18 void set_nr_cpu_ids(unsigned int max_cpus);
|
/xen/xen/common/ |
A D | trace.c | 117 unsigned int max_cpus = nr_cpu_ids; in calculate_tbuf_size() local 137 max_cpus--; in calculate_tbuf_size() 138 if ( max_cpus ) in calculate_tbuf_size() 139 max_mfn_offset /= max_cpus; in calculate_tbuf_size()
|
A D | sysctl.c | 149 nr_cpus = min(op->u.getcpuinfo.max_cpus, nr_cpu_ids); in do_sysctl()
|
/xen/tools/python/xen/lowlevel/xc/ |
A D | xc.c | 914 int max_cpus, nr_cpus, ret, i; in pyxc_getcpuinfo() local 918 if(!PyArg_ParseTupleAndKeywords(args, kwds, kwd_type, kwd_list, &max_cpus)) in pyxc_getcpuinfo() 921 cpuinfo = malloc(sizeof(xc_cpuinfo_t) * max_cpus); in pyxc_getcpuinfo() 925 ret = xc_getcpuinfo(self->xc_handle, max_cpus, cpuinfo, &nr_cpus); in pyxc_getcpuinfo()
|
/xen/xen/include/public/ |
A D | sysctl.h | 186 uint32_t max_cpus; member
|
/xen/tools/libxc/include/ |
A D | xenctrl.h | 1244 int xc_cputopoinfo(xc_interface *xch, unsigned *max_cpus, 1260 int xc_getcpuinfo(xc_interface *xch, int max_cpus,
|
Completed in 32 milliseconds