+ random-reorder-struct-entropy_store-to-remove-padding-on-64bits.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     random: reorder struct entropy_store to remove padding on 64bits
has been added to the -mm tree.  Its filename is
     random-reorder-struct-entropy_store-to-remove-padding-on-64bits.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: random: reorder struct entropy_store to remove padding on 64bits
From: Richard Kennedy <richard@xxxxxxxxxxxxxxx>

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.

mpm sez: I have a vague memory that we reordered things so that the r/w
bits would be on a separate cache line than the r/o bits.  But as we never
added the alignment primitives to actually enforce that, I guess it
doesn't matter much.  

Signed-off-by: Richard Kennedy <richard@xxxxxxxxxxxxxxx>
Acked-by: Matt Mackall <mpm@xxxxxxxxxxx>
Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/char/random.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/char/random.c~random-reorder-struct-entropy_store-to-remove-padding-on-64bits drivers/char/random.c
--- a/drivers/char/random.c~random-reorder-struct-entropy_store-to-remove-padding-on-64bits
+++ a/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;
_

Patches currently in -mm which might be from richard@xxxxxxxxxxxxxxx are

timer_list-remove-alignment-padding-on-64-bit-when-config_timer_stats.patch
buffer_head-remove-redundant-test-from-wait_on_buffer.patch
writeback-reduce-calls-to-global_page_state-in-balance_dirty_pages.patch
random-reorder-struct-entropy_store-to-remove-padding-on-64bits.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux