mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
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>
This commit is contained in:
parent
98f4ebb290
commit
417b43d4b7
@ -1488,7 +1488,8 @@ static void rekey_seq_generator(struct work_struct *work)
|
|||||||
keyptr->count = (ip_cnt & COUNT_MASK) << HASH_BITS;
|
keyptr->count = (ip_cnt & COUNT_MASK) << HASH_BITS;
|
||||||
smp_wmb();
|
smp_wmb();
|
||||||
ip_cnt++;
|
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)
|
static inline struct keydata *get_keyptr(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user