Messages in this thread Patch in this message | | | Date | Tue, 17 Dec 2013 15:17:53 -0500 | From | Steven Rostedt <> | Subject | [PATCH] sched, deadline: Properly initialize def_dl_bandwidth lock |
| |
Spinlocks even in structures require to be properly initialized.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Index: linux-rt.git/kernel/sched/deadline.c =================================================================== --- linux-rt.git.orig/kernel/sched/deadline.c +++ linux-rt.git/kernel/sched/deadline.c @@ -18,7 +18,9 @@ #include <linux/slab.h> -struct dl_bandwidth def_dl_bandwidth; +struct dl_bandwidth def_dl_bandwidth = { + .dl_runtime_lock = __RAW_SPIN_LOCK_UNLOCKED(def_dl_bandwidth.dl_runtime_lock), +}; static inline struct task_struct *dl_task_of(struct sched_dl_entity *dl_se) {
| |