diff options
author | 2013-09-12 14:27:22 -0400 | |
---|---|---|
committer | 2013-10-10 14:32:17 -0400 | |
commit | 3ef4cb2d65ee13d84140cbede8e1980c6ae49ffd (patch) | |
tree | 676c6f18c9b75350b92cec558919b6d19a5e5298 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | random: fix the tracepoint for get_random_bytes(_arch) (diff) | |
download | linux-dev-3ef4cb2d65ee13d84140cbede8e1980c6ae49ffd.tar.xz linux-dev-3ef4cb2d65ee13d84140cbede8e1980c6ae49ffd.zip |
random: optimize spinlock use in add_device_randomness()
The add_device_randomness() function calls mix_pool_bytes() twice for
the input pool and the non-blocking pool, for a total of four times.
By using _mix_pool_byte() and taking the spinlock in
add_device_randomness(), we can halve the number of times we need
take each pool's spinlock.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions