Lines Matching refs:n_threads
3040 static void kvmppc_wait_for_nap(int n_threads) in kvmppc_wait_for_nap() argument
3045 if (n_threads <= 1) in kvmppc_wait_for_nap()
3054 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap()
3057 if (i == n_threads) { in kvmppc_wait_for_nap()
3064 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap()
3182 static bool subcore_config_ok(int n_subcores, int n_threads) in subcore_config_ok() argument
3189 return n_subcores <= 4 && n_threads == 1; in subcore_config_ok()
3203 return n_subcores * roundup_pow_of_two(n_threads) <= MAX_SMT_THREADS; in subcore_config_ok()
3217 int n_threads = vc->num_threads; in can_dynamic_split() local
3227 if (n_threads < cip->max_subcore_threads) in can_dynamic_split()
3228 n_threads = cip->max_subcore_threads; in can_dynamic_split()
3229 if (!subcore_config_ok(cip->n_subcores + 1, n_threads)) in can_dynamic_split()
3231 cip->max_subcore_threads = n_threads; in can_dynamic_split()