[PATCH 05/13] RT: Initialize the priority value

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gregory Haskins
Date: Tuesday, October 23, 2007 - 9:50 am

We should init the base value of the current RQ priority to "IDLE"

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
---

 kernel/sched.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index dfd0b92..7c4fba8 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7386,6 +7386,8 @@ void __init sched_init(void)
 		highest_cpu = i;
 		/* delimiter for bitsearch: */
 		__set_bit(MAX_RT_PRIO, array->bitmap);
+
+		set_rq_prio(rq, MAX_PRIO);
 	}
 
 	set_load_weight(&init_task);

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/13] Balance RT tasks v5, Gregory Haskins, (Tue Oct 23, 9:50 am)
[PATCH 01/13] RT: push-rt, Gregory Haskins, (Tue Oct 23, 9:50 am)
[PATCH 03/13] RT: Add a per-cpu rt_overload indication, Gregory Haskins, (Tue Oct 23, 9:50 am)
[PATCH 05/13] RT: Initialize the priority value, Gregory Haskins, (Tue Oct 23, 9:50 am)
[PATCH 06/13] RT: Maintain the highest RQ priority, Gregory Haskins, (Tue Oct 23, 9:50 am)
[PATCH 07/13] RT: Clean up some of the push-rt logic, Gregory Haskins, (Tue Oct 23, 9:50 am)
[PATCH 10/13] RT: Fixes for push-rt patch, Gregory Haskins, (Tue Oct 23, 9:51 am)
[PATCH 11/13] RT: Condense NORMAL and IDLE priorities, Gregory Haskins, (Tue Oct 23, 9:51 am)
[PATCH 12/13] RT: CPU priority management, Gregory Haskins, (Tue Oct 23, 9:51 am)