public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Align rekey_work
@ 2009-04-01 10:46 Anton Blanchard
  0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2009-04-01 10:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: arjan, akpm


Align rekey_work. Even though it's infrequent, we may as well line it up.

Signed-off-by: Anton Blanchard <anton@samba.org>
---

Index: linux-2.6/drivers/char/random.c
===================================================================
--- linux-2.6.orig/drivers/char/random.c	2009-04-01 15:47:27.000000000 +1100
+++ linux-2.6/drivers/char/random.c	2009-04-01 16:32:40.000000000 +1100
@@ -1488,7 +1488,8 @@
 	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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-01 10:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 10:46 [PATCH] Align rekey_work Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox