* Dmitry Adamushko <dmitry.adamushko@gmail.com> wrote: > I guess, the following thing would do a better job: > > - we do need reschedule() _only_ if there are other task on the _same_ > queue (for this prio level) : ah, indeed. > --- kernel/sched_rt-prev.c 2007-08-09 09:55:10.000000000 +0200 > +++ kernel/sched_rt.c 2007-08-09 09:58:53.000000000 +0200 > @@ -207,6 +207,11 @@ static void task_tick_rt(struct rq *rq, > return; > > p->time_slice = static_prio_timeslice(p->static_prio); > + > + /* We are the only element on the queue. */ > + if (p->run_list.prev == p->run_list.next) > + return; > + i've applied your patch - could you please send a SOB line? Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- From: Ingo Molnar <mingo@elte.hu>
- Re: Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- References:
- Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- From: "Mitchell Erblich" <erblichs@earthlink.net>
- Re: Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- From: Ingo Molnar <mingo@elte.hu>
- Re: Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- From: "Dmitry Adamushko" <dmitry.adamushko@gmail.com>
- Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- Prev by Date: atomic open (was Re: [RFC 01/10] Split up struct nameidata)
- Next by Date: Re: Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- Previous by thread: Re: Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- Next by thread: Re: Question: RT schedular : task_tick_rt(struct rq *rq, struct task_struct *p) : decreases overhead when rq->nr_running == 1
- Index(es):
![]() |