diff options
author | Anton Blanchard <anton@samba.org> | 2009-04-02 19:56:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-02 22:04:49 -0400 |
commit | 417b43d4b728619e9bcc2da4fa246a6350d46667 (patch) | |
tree | 3db555a29fefe22f85e79cf589ae534d3354b393 /drivers/char/random.c | |
parent | 98f4ebb290a7dca8c48f27ec1d2cab8fa7982dad (diff) |
random: align rekey_work's timer
Align rekey_work. Even though it's infrequent, we may as well line it up.
Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Matt Mackall <mpm@selenic.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r-- | drivers/char/random.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 7c43ae782b26..f824ef8a9273 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -1488,7 +1488,8 @@ static void rekey_seq_generator(struct work_struct *work) | |||
1488 | keyptr->count = (ip_cnt & COUNT_MASK) << HASH_BITS; | 1488 | keyptr->count = (ip_cnt & COUNT_MASK) << HASH_BITS; |
1489 | smp_wmb(); | 1489 | smp_wmb(); |
1490 | ip_cnt++; | 1490 | ip_cnt++; |
1491 | schedule_delayed_work(&rekey_work, REKEY_INTERVAL); | 1491 | schedule_delayed_work(&rekey_work, |
1492 | round_jiffies_relative(REKEY_INTERVAL)); | ||
1492 | } | 1493 | } |
1493 | 1494 | ||
1494 | static inline struct keydata *get_keyptr(void) | 1495 | static inline struct keydata *get_keyptr(void) |