Re: [PATCH 5/7] RT: Add support for low-priority wake-up to push_rt feature

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Gregory Haskins <ghaskins@...>
Cc: Peter Zijlstra <a.p.zijlstra@...>, RT <linux-rt-users@...>, Ingo Molnar <mingo@...>, LKML <linux-kernel@...>
Date: Monday, October 15, 2007 - 2:05 pm

--
On Fri, 12 Oct 2007, Gregory Haskins wrote:


Loop conditions like this must be written as:

   while (push_rt_task(this_rq))
	;

So we don't accidently put something inside the loop if we forget to add
the semicolon, like:

   while (push_rt_task(this_rq)

   do_something_not_expected_to_loop();

Of course you end your function after that and thus we would get an
compile error if the semicolon were to be missing. But we might add
code afterwards.


Hmm, maybe I should put that mask into the find_lowest_cpu function.
Of course I changed this a little in my last patch.


Could we have preempted to get a new this_cpu?


I think the question is, doesn't this make the above not needed? The
push_rt_tasks should do what the previous condition did.

Maybe I'm missing something.


Heh, I guess that would work.

-- Steve

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

Messages in current thread:
[PATCH 0/7] RT: RT-Overload/Sched enhancements (v2), Gregory Haskins, (Fri Oct 12, 8:15 pm)
[PATCH 6/7] RT: Select tasks based on relative affinity, Gregory Haskins, (Fri Oct 12, 8:16 pm)
Re: [PATCH 6/7] RT: Select tasks based on relative affinity, Gregory Haskins, (Mon Oct 15, 4:08 pm)
Re: [PATCH 5/7] RT: Add support for low-priority wake-up to ..., Steven Rostedt, (Mon Oct 15, 2:05 pm)
[PATCH 3/7] RT: Initialize the priority value, Gregory Haskins, (Fri Oct 12, 8:15 pm)
Re: [PATCH 3/7] RT: Initialize the priority value, Steven Rostedt, (Mon Oct 15, 1:46 pm)
[PATCH 1/7] RT: Add a per-cpu rt_overload indication, Gregory Haskins, (Fri Oct 12, 8:15 pm)
Re: [PATCH 1/7] RT: Add a per-cpu rt_overload indication, Steven Rostedt, (Mon Oct 15, 1:42 pm)