Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43358209 authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;