[PATCH] sched, deadline: Properly initialize def_dl_bandwidth lock

From: Steven Rostedt
Date: Tue Dec 17 2013 - 15:18:06 EST



Spinlocks even in structures require to be properly initialized.

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

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)
{
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/