mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-14 00:17:51 +02:00
this backports https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/char/random.c?id=50ee7529ec4500c88f8664560770a7a1b65db72b to gather enough entropy for initialise the crng faster. Of some machines like the APU it will need forever if the machine only wait for entropy without doing anything else. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
19 lines
694 B
Diff
19 lines
694 B
Diff
diff -Naur linux-4.14.173.org/include/linux/timer.h linux-4.14.173/include/linux/timer.h
|
|
--- linux-4.14.173.org/include/linux/timer.h 2020-03-11 18:03:09.000000000 +0100
|
|
+++ linux-4.14.173/include/linux/timer.h 2020-04-30 19:30:13.956596003 +0200
|
|
@@ -180,6 +180,14 @@
|
|
(TIMER_DATA_TYPE)timer, flags);
|
|
}
|
|
|
|
+static inline void timer_setup_on_stack(struct timer_list *timer,
|
|
+ void (*callback)(struct timer_list *),
|
|
+ unsigned int flags)
|
|
+{
|
|
+ __setup_timer_on_stack(timer, (TIMER_FUNC_TYPE)callback,
|
|
+ (TIMER_DATA_TYPE)timer, flags);
|
|
+}
|
|
+
|
|
#define from_timer(var, callback_timer, timer_fieldname) \
|
|
container_of(callback_timer, typeof(*var), timer_fieldname)
|
|
|