Re: [PATCH] One-liner typo 2.5.3-pre3 in ppc/kernel/idle.c

Rusty Russell (rusty@rustcorp.com.au)
Wed, 23 Jan 2002 17:00:25 +1100


In message <20020123053118.GB14366@krispykreme> you write:
> We atomically grab the current value of need_resched and replace it with
> -1. The -1 tells the scheduler that we are busy looping and it doesnt need
> to send an IPI to force a reschedule.

Yes, but the replacment loop was completely wrong. Sure, with my
patch this optimization isn't there, but at least it will work as
designed...

Cheers!
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/