Theodore Ts'o
3ef4cb2d65
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 >
2013-10-10 14:32:17 -04:00
..
2013-07-31 23:42:00 +02:00
2013-07-13 14:52:21 -07:00
2013-06-17 16:43:08 -07:00
2013-07-09 10:33:28 -07:00
2013-06-03 14:20:18 -07:00
2013-06-28 00:47:43 +02:00
2013-05-30 21:46:16 +09:00
2012-04-05 17:34:30 -07:00
2013-03-15 12:23:48 -07:00
2012-07-17 10:27:38 -07:00
2012-03-28 18:30:03 +01:00
2013-05-05 00:11:29 -04:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-05-05 00:12:29 -04:00
2013-05-05 00:12:29 -04:00
2013-06-17 16:43:08 -07:00
2012-01-13 09:32:20 +10:30
2013-06-03 14:31:39 -07:00
2013-05-16 18:08:58 -07:00
2012-10-16 18:07:12 -07:00
2012-11-21 12:55:19 -08:00
2013-07-03 16:08:03 -07:00
2013-06-26 10:12:48 -07:00
2012-09-26 13:20:40 -07:00
2013-05-21 10:07:54 -07:00
2013-02-22 23:31:31 -05:00
2012-03-28 18:30:03 +01:00
2012-09-26 13:20:39 -07:00
2012-10-07 07:22:32 -07:00
2012-10-24 15:52:29 -07:00
2013-02-22 23:31:31 -05:00
2013-06-29 12:57:33 +04:00
2013-10-10 14:32:17 -04:00
2013-02-22 23:31:31 -05:00
2013-06-17 16:43:08 -07:00
2013-02-26 20:16:07 -08:00
2013-02-22 23:31:31 -05:00
2013-06-29 12:57:51 +04:00
2012-08-16 10:09:15 -07:00
2013-05-21 10:13:23 -07:00
2013-07-29 14:43:58 +09:30