Commit 66b25142 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller

random32: add __init prefix to prandom_start_seed_timer

We only call that in functions annotated with __init, so add __init
prefix in prandom_start_seed_timer() as well, so that the kernel can
make use of this hint and we can possibly free up resources after it's
usage. And since it's an internal function rename it to
Signed-off-by: default avatarDaniel Borkmann <>
Signed-off-by: default avatarHannes Frederic Sowa <>
Signed-off-by: default avatarDavid S. Miller <>
parent 16a3fa28
......@@ -222,7 +222,7 @@ static void __prandom_timer(unsigned long dontcare)
static void prandom_start_seed_timer(void)
static void __init __prandom_start_seed_timer(void)
set_timer_slack(&seed_timer, HZ);
seed_timer.expires = jiffies + 40 * HZ;
......@@ -270,7 +270,7 @@ void prandom_reseed_late(void)
static int __init prandom_reseed(void)
return 0;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment