|
@@ -1131,8 +1131,6 @@ static void add_timer_randomness(struct timer_rand_state *state, unsigned num)
|
|
|
} sample;
|
|
|
long delta, delta2, delta3;
|
|
|
|
|
|
- preempt_disable();
|
|
|
-
|
|
|
sample.jiffies = jiffies;
|
|
|
sample.cycles = random_get_entropy();
|
|
|
sample.num = num;
|
|
@@ -1170,8 +1168,6 @@ static void add_timer_randomness(struct timer_rand_state *state, unsigned num)
|
|
|
* and limit entropy entimate to 12 bits.
|
|
|
*/
|
|
|
credit_entropy_bits(r, min_t(int, fls(delta>>1), 11));
|
|
|
-
|
|
|
- preempt_enable();
|
|
|
}
|
|
|
|
|
|
void add_input_randomness(unsigned int type, unsigned int code,
|