lkml.org 
[lkml]   [2006]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -rt 2/2] Fix condition in default_idle

* Steven Rostedt <rostedt@goodmis.org> wrote:

> The condition statement in default_idle had the conjunctions
> backwards. Instead of && it had || so the idle thread would never be
> preempted.

> - while (!need_resched() || !need_resched_delayed()) {
> + while (!need_resched() && !need_resched_delayed()) {
> local_irq_disable();
> - if (!need_resched() || !need_resched_delayed())
> + if (!need_resched() && !need_resched_delayed())

doh! Good catch - applied.

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/

\
 
 \ /
  Last update: 2006-05-26 19:42    [W:0.153 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site