Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/virt/nitro_enclaves/
Dne_misc_dev.c119 struct ne_cpu_pool { struct
127 static struct ne_cpu_pool ne_cpu_pool; argument
192 mutex_lock(&ne_cpu_pool.mutex); in ne_setup_cpu_pool()
293 ne_cpu_pool.nr_threads_per_core++; in ne_setup_cpu_pool()
295 ne_cpu_pool.nr_parent_vm_cores = nr_cpu_ids / ne_cpu_pool.nr_threads_per_core; in ne_setup_cpu_pool()
297 ne_cpu_pool.avail_threads_per_core = kcalloc(ne_cpu_pool.nr_parent_vm_cores, in ne_setup_cpu_pool()
298 sizeof(*ne_cpu_pool.avail_threads_per_core), in ne_setup_cpu_pool()
300 if (!ne_cpu_pool.avail_threads_per_core) { in ne_setup_cpu_pool()
306 for (i = 0; i < ne_cpu_pool.nr_parent_vm_cores; i++) in ne_setup_cpu_pool()
307 if (!zalloc_cpumask_var(&ne_cpu_pool.avail_threads_per_core[i], GFP_KERNEL)) { in ne_setup_cpu_pool()
[all …]