Home
last modified time | relevance | path

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

/lib/
Dproportions.c278 unsigned long period_2 = 1UL << (pg->shift - 1); in __prop_inc_percpu_max() local
279 unsigned long counter_mask = period_2 - 1; in __prop_inc_percpu_max()
285 denominator = period_2 + (global_count & counter_mask); in __prop_inc_percpu_max()
308 unsigned long period_2 = 1UL << (pg->shift - 1); in prop_fraction_percpu() local
309 unsigned long counter_mask = period_2 - 1; in prop_fraction_percpu()
316 *denominator = period_2 + (global_count & counter_mask); in prop_fraction_percpu()
396 unsigned long period_2 = 1UL << (pg->shift - 1); in prop_fraction_single() local
397 unsigned long counter_mask = period_2 - 1; in prop_fraction_single()
404 *denominator = period_2 + (global_count & counter_mask); in prop_fraction_single()