Skip to content

Commit

Permalink
random: Reorder struct entropy_store to remove padding on 64bits
Browse files Browse the repository at this point in the history
Re-order structure entropy_store to remove 8 bytes of padding on
64 bit builds, so shrinking this structure from 72 to 64 bytes
and allowing it to fit into one cache line.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Richard Kennedy authored and Herbert Xu committed Jul 31, 2010
1 parent 313910d commit 4015d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ struct entropy_store {
struct poolinfo *poolinfo;
__u32 *pool;
const char *name;
int limit;
struct entropy_store *pull;
int limit;

/* read-write data: */
spinlock_t lock;
Expand Down

0 comments on commit 4015d9a

Please sign in to comment.