diff options
author | 2013-09-22 15:24:02 -0400 | |
---|---|---|
committer | 2013-10-10 14:32:20 -0400 | |
commit | 655b226470b229552ad95b21323864df9bd9fc74 (patch) | |
tree | 9379bc872df3e7e859654a374e23be3fc4248521 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | random: cap the rate which the /dev/urandom pool gets reseeded (diff) | |
download | linux-dev-655b226470b229552ad95b21323864df9bd9fc74.tar.xz linux-dev-655b226470b229552ad95b21323864df9bd9fc74.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions