Re: [patch] Real-Time Preemption, -RT-2.6.12-rc6-V0.7.48-00

From: Ingo Molnar
Date: Sat Jun 11 2005 - 02:42:26 EST



* Michal Schmidt <xschmi00@xxxxxxxxxxxxxxxxxx> wrote:

> Hi Ingo,
>
> Since the introduction of the delayed preemption feature in V0.7.47-20
> my KDE desktop has been jerky. The sound from artsd often skips. The
> mouse pointer jumps when I compile anything the background and try to
> browse the web with Firefox.

yeah.

> I think that try_to_wake_up is broken for the !sync case. We have:
>
> __activate_task(p, rq);
> if (TASK_PREEMPTS_CURR(p, rq)) {
> if (sync)
> set_tsk_need_resched_delayed(rq->curr);
> else
> resched_task(rq->curr);
> }
>
> Shouldn't we call the full activate_task(...) instead of
> __activate_task(...) in the !sync case?

indeed.

> The attached patch fixes seems to fix it for me. It is against
> V0.7.48-05.

thanks, applied - but this does not end all of the reschedule problems
that the latest patches have. More on that later.

Ingo
-
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/