Commit 66b251422be7cb39e7619fee647724720f74d1f7
Committed by
David S. Miller
1 parent
16a3fa2863
Exists in
master
and in
16 other branches
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 __prandom_start_seed_timer(). Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
lib/random32.c
... | ... | @@ -222,7 +222,7 @@ |
222 | 222 | add_timer(&seed_timer); |
223 | 223 | } |
224 | 224 | |
225 | -static void prandom_start_seed_timer(void) | |
225 | +static void __init __prandom_start_seed_timer(void) | |
226 | 226 | { |
227 | 227 | set_timer_slack(&seed_timer, HZ); |
228 | 228 | seed_timer.expires = jiffies + 40 * HZ; |
... | ... | @@ -270,7 +270,7 @@ |
270 | 270 | static int __init prandom_reseed(void) |
271 | 271 | { |
272 | 272 | __prandom_reseed(false); |
273 | - prandom_start_seed_timer(); | |
273 | + __prandom_start_seed_timer(); | |
274 | 274 | return 0; |
275 | 275 | } |
276 | 276 | late_initcall(prandom_reseed); |