From: Theodore Ts'o Date: Thu, 12 Sep 2013 18:27:22 +0000 (-0400) Subject: random: optimize spinlock use in add_device_randomness() X-Git-Tag: v3.13-rc1~61^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef4cb2d65ee13d84140cbede8e1980c6ae49ffd;p=pandora-kernel.git 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" --- Reading git-diff-tree failed