diff options
author | Theodore Ts'o <tytso@mit.edu> | 2013-09-22 15:24:02 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-10-10 14:32:20 -0400 |
commit | 655b226470b229552ad95b21323864df9bd9fc74 (patch) | |
tree | 9379bc872df3e7e859654a374e23be3fc4248521 /drivers/char/ds1620.c | |
parent | f5c2742c23886e707f062881c5f206c1fc704782 (diff) | |
download | linux-655b226470b229552ad95b21323864df9bd9fc74.tar.bz2 |
random: speed up the fast_mix function by a factor of four
By mixing the entropy in chunks of 32-bit words instead of byte by
byte, we can speed up the fast_mix function significantly. Since it
is called on every single interrupt, on systems with a very heavy
interrupt load, this can make a noticeable difference.
Also fix a compilation warning in add_interrupt_randomness() and avoid
xor'ing cycles and jiffies together just in case we have an
architecture which tries to define random_get_entropy() by returning
jiffies.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reported-by: Jörn Engel <joern@logfs.org>
Diffstat (limited to 'drivers/char/ds1620.c')
0 files changed, 0 insertions, 0 deletions