Commit 43358209 authored by Matt Mackall's avatar Matt Mackall Committed by 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: default avatarMatt Mackall <mpm@selenic.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1c0ad3d4
...@@ -395,7 +395,7 @@ module_param(debug, bool, 0644); ...@@ -395,7 +395,7 @@ module_param(debug, bool, 0644);
struct entropy_store; struct entropy_store;
struct entropy_store { struct entropy_store {
/* mostly-read data: */ /* read-only data: */
struct poolinfo *poolinfo; struct poolinfo *poolinfo;
__u32 *pool; __u32 *pool;
const char *name; const char *name;
...@@ -403,7 +403,7 @@ struct entropy_store { ...@@ -403,7 +403,7 @@ struct entropy_store {
struct entropy_store *pull; struct entropy_store *pull;
/* read-write data: */ /* read-write data: */
spinlock_t lock ____cacheline_aligned_in_smp; spinlock_t lock;
unsigned add_ptr; unsigned add_ptr;
int entropy_count; int entropy_count;
int input_rotate; int input_rotate;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment