From: Jim Houston Date: Sun, 30 Jul 2006 10:03:39 +0000 (-0700) Subject: [PATCH] fix cond_resched() fix X-Git-Tag: v2.6.18-rc4~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d7d253548cffdce80f4e03664686e9ccb1b0ed7;p=pandora-kernel.git [PATCH] fix cond_resched() fix In cond_resched_lock() it calls __resched_legal() before dropping the spin lock. __resched_legal() will always finds the preempt_count non-zero and will prevent the call to __cond_resched(). The attached patch adds a parameter to __resched_legal() with the expected preempt_count value. Cc: Ingo Molnar Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed