Home
last modified time | relevance | path

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

/linux-4.1.27/include/net/
Dinet_hashtables.h173 unsigned int nr_pcpus = 2; in inet_ehash_locks_alloc() local
175 unsigned int nr_pcpus = num_possible_cpus(); in inet_ehash_locks_alloc() local
177 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()
/linux-4.1.27/lib/
Drhashtable.c68 unsigned int nr_pcpus = 2; in alloc_bucket_locks() local
70 unsigned int nr_pcpus = num_possible_cpus(); in alloc_bucket_locks() local
73 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()