提交 417b43d4 编写于 作者: A Anton Blanchard 提交者: Linus Torvalds

random: align rekey_work's timer

Align rekey_work. Even though it's infrequent, we may as well line it up.
Signed-off-by: NAnton Blanchard <anton@samba.org>
Acked-by: NMatt Mackall <mpm@selenic.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 98f4ebb2
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册