提交 43358209 编写于 作者: M Matt Mackall 提交者: Linus Torvalds

random: remove cacheline alignment for locks

Earlier changes greatly reduce the number of times we grab the lock
per output byte, so we shouldn't need this particular hack any more.
Signed-off-by: NMatt Mackall <mpm@selenic.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 1c0ad3d4
......@@ -395,7 +395,7 @@ module_param(debug, bool, 0644);
struct entropy_store;
struct entropy_store {
/* mostly-read data: */
/* read-only data: */
struct poolinfo *poolinfo;
__u32 *pool;
const char *name;
......@@ -403,7 +403,7 @@ struct entropy_store {
struct entropy_store *pull;
/* read-write data: */
spinlock_t lock ____cacheline_aligned_in_smp;
spinlock_t lock;
unsigned add_ptr;
int entropy_count;
int input_rotate;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册