|
@@ -626,7 +626,7 @@ static void add_timer_randomness(struct timer_rand_state *state, unsigned num)
|
|
preempt_disable();
|
|
preempt_disable();
|
|
/* if over the trickle threshold, use only 1 in 4096 samples */
|
|
/* if over the trickle threshold, use only 1 in 4096 samples */
|
|
if (input_pool.entropy_count > trickle_thresh &&
|
|
if (input_pool.entropy_count > trickle_thresh &&
|
|
- (__get_cpu_var(trickle_count)++ & 0xfff))
|
|
|
|
|
|
+ ((__this_cpu_inc_return(trickle_count) - 1) & 0xfff))
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
sample.jiffies = jiffies;
|
|
sample.jiffies = jiffies;
|