summary refs log tree commit diff
path: root/drivers/char
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2009-04-02 16:56:39 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-02 19:04:49 -0700
commit417b43d4b728619e9bcc2da4fa246a6350d46667 (patch)
tree3db555a29fefe22f85e79cf589ae534d3354b393 /drivers/char
parent98f4ebb290a7dca8c48f27ec1d2cab8fa7982dad (diff)
downloadlinux-417b43d4b728619e9bcc2da4fa246a6350d46667.tar.gz
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')
-rw-r--r--drivers/char/random.c3
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)
 	keyptr->count = (ip_cnt & COUNT_MASK) << HASH_BITS;
 	smp_wmb();
 	ip_cnt++;
-	schedule_delayed_work(&rekey_work, REKEY_INTERVAL);
+	schedule_delayed_work(&rekey_work,
+			      round_jiffies_relative(REKEY_INTERVAL));
 }
 
 static inline struct keydata *get_keyptr(void)