[RT] [PATCH 2/3] Initialize rt.nr_running & rt.nr_unterruptible

From: Ankita Garg
Date: Sun Mar 23 2008 - 10:54:53 EST


Hi,

o Initialize rt.nr_running and rt.nr_uninterruptible fields explicitly.


Signed-off-by: Ankita Garg <ankita@xxxxxxxxxx>

Index: linux-2.6.24.3/kernel/sched.c
===================================================================
--- linux-2.6.24.3.orig/kernel/sched.c 2008-03-23 19:13:16.000000000 +0530
+++ linux-2.6.24.3/kernel/sched.c 2008-03-23 19:13:40.000000000 +0530
@@ -7333,6 +7333,8 @@
rq->cpu = i;
rq->migration_thread = NULL;
INIT_LIST_HEAD(&rq->migration_queue);
+ rq->rt.nr_running = 0;
+ rq->rt.nr_uninterruptible = 0;
rq->rt.highest_prio = MAX_RT_PRIO;
rq->rt.overloaded = 0;
rq_attach_root(rq, &def_root_domain);

--
Regards,
Ankita Garg (ankita@xxxxxxxxxx)
Linux Technology Center
IBM India Systems & Technology Labs,
Bangalore, India
--
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/