diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2010-07-31 07:58:00 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-07-31 07:58:00 -0400 |
commit | 4015d9a865e3bcc42d88bedc8ce1551000bab664 (patch) | |
tree | 0bec23a1ae5c2c95b99360ff4ddb51b34212f446 /drivers/char | |
parent | 313910d3b98029a867bb4aa3ee552ae573db0458 (diff) |
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 <richard@rsk.demon.co.uk>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
407 | struct poolinfo *poolinfo; | 407 | struct poolinfo *poolinfo; |
408 | __u32 *pool; | 408 | __u32 *pool; |
409 | const char *name; | 409 | const char *name; |
410 | int limit; | ||
411 | struct entropy_store *pull; | 410 | struct entropy_store *pull; |
411 | int limit; | ||
412 | 412 | ||
413 | /* read-write data: */ | 413 | /* read-write data: */ |
414 | spinlock_t lock; | 414 | spinlock_t lock; |