From: Atsushi Nemoto Date: Wed, 7 Jun 2006 16:09:01 +0000 (+0900) Subject: [MIPS] Reduce race between cpu_wait() and need_resched() checking X-Git-Tag: v2.6.19-rc1~1039 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60a6c3777ec607c5b19df9eac35088db4e142a6b;p=pandora-kernel.git [MIPS] Reduce race between cpu_wait() and need_resched() checking If a thread became runnable between need_resched() and the WAIT instruction, switching to the thread will delay until a next interrupt. Some CPUs can execute the WAIT instruction with interrupt disabled, so we can get rid of this race on them (at least UP case). Original Patch by Atsushi with fixing up for MIPS Technology's cores by Ralf based on feedback from the RTL designers. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed