From: Linus Torvalds Date: Sun, 22 Jun 2008 19:23:15 +0000 (-0700) Subject: Fix performance regression on lmbench select benchmark X-Git-Tag: v2.6.26-rc8~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55d8538498f62ec72b5ba67aa386c7726f630475;p=pandora-kernel.git Fix performance regression on lmbench select benchmark Christian Borntraeger reported that reinstating cond_resched() with CONFIG_PREEMPT caused a performance regression on lmbench: For example select file 500: 23 microseconds 32 microseconds and that's really because we totally unnecessarily do the cond_resched() in the innermost loop of select(), which is just silly. This moves it out from the innermost loop (which only ever loops ove the bits in a single "unsigned long" anyway), which makes the performance regression go away. Reported-and-tested-by: Christian Borntraeger Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed