From: Richard Kennedy Date: Sat, 31 Jul 2010 11:58:00 +0000 (+0800) Subject: random: Reorder struct entropy_store to remove padding on 64bits X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4015d9a865e3bcc42d88bedc8ce1551000bab664;p=linux-beck.git random: Reorder struct entropy_store to remove padding on 64bits 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 Signed-off-by: Matt Mackall Signed-off-by: Herbert Xu --- diff --git a/drivers/char/random.c b/drivers/char/random.c index 8d85587b6d4f..caef35a46890 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -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;