Messages in this thread Patch in this message | | | Subject | [PATCH 07 of 12] random: remove cacheline alignment for locks | Date | Thu, 17 Jan 2008 20:33:49 -0600 | From | Matt Mackall <> |
| |
Earlier changes greatly reduce the number of times we grab the lock per output byte, so we shouldn't need this particular hack any more.
Signed-off-by: Matt Mackall <mpm@selenic.com>
diff -r 9569d3011032 -r 70f981257057 drivers/char/random.c --- a/drivers/char/random.c Thu Jan 17 20:25:23 2008 -0600 +++ b/drivers/char/random.c Thu Jan 17 20:25:23 2008 -0600 @@ -395,7 +395,7 @@ struct entropy_store; struct entropy_store { - /* mostly-read data: */ + /* read-only data: */ struct poolinfo *poolinfo; __u32 *pool; const char *name; @@ -403,7 +403,7 @@ struct entropy_store *pull; /* read-write data: */ - spinlock_t lock ____cacheline_aligned_in_smp; + spinlock_t lock; unsigned add_ptr; int entropy_count; int input_rotate;
| |