login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: linux-rt-users <linux-rt-users@...>, LKML <linux-kernel@...>, Ingo Molnar <mingo@...>, Gregory Haskins <ghaskins@...>, Steven Rostedt <rostedt@...>, Peter Zijlstra <a.p.zijlstra@...>
Date: Sunday, March 23, 2008 - 10:54 am

Hi,

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


Signed-off-by: Ankita Garg <ankita@in.ibm.com> 

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@in.ibm.com)
Linux Technology Center
IBM India Systems & Technology Labs, 
Bangalore, India   
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RT] [PATCH 2/3] Initialize rt.nr_running & rt.nr_unterr..., Ankita Garg, (Sun Mar 23, 10:54 am)
[RT] [PATCH 1/3] Change the names of rt_rq fields for, Ankita Garg, (Sun Mar 23, 10:52 am)
speck-geostationary