random: Reorder struct entropy_store to remove padding on 64bits
authorRichard Kennedy <richard@rsk.demon.co.uk>
Sat, 31 Jul 2010 11:58:00 +0000 (19:58 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 31 Jul 2010 11:58:00 +0000 (19:58 +0800)
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>
drivers/char/random.c

index 8d85587b6d4f3a9693663b007b9a0778ea4d1e00..caef35a468908046be61975611ea7728661ed32c 100644 (file)
@@ -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;