Searched refs:nr_pcpus (Results 1 – 2 of 2) sorted by relevance
173 unsigned int nr_pcpus = 2; in inet_ehash_locks_alloc() local175 unsigned int nr_pcpus = num_possible_cpus(); in inet_ehash_locks_alloc() local177 if (nr_pcpus >= 4) in inet_ehash_locks_alloc()179 if (nr_pcpus >= 8) in inet_ehash_locks_alloc()181 if (nr_pcpus >= 16) in inet_ehash_locks_alloc()183 if (nr_pcpus >= 32) in inet_ehash_locks_alloc()
68 unsigned int nr_pcpus = 2; in alloc_bucket_locks() local70 unsigned int nr_pcpus = num_possible_cpus(); in alloc_bucket_locks() local73 nr_pcpus = min_t(unsigned int, nr_pcpus, 32UL); in alloc_bucket_locks()74 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks()