Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 417b43d4 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds
Browse files

random: align rekey_work's timer



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

Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Acked-by: default avatarMatt Mackall <mpm@selenic.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 98f4ebb2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)