From: Peter Zijlstra Date: Fri, 10 Jul 2009 12:57:57 +0000 (+0200) Subject: sched: optimize cond_resched() X-Git-Tag: v2.6.31-rc3~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d86ee4809d0329d4aa0d0f2c76c2295a16862799;p=pandora-kernel.git sched: optimize cond_resched() Optimize cond_resched() by removing one conditional. Currently cond_resched() checks system_state == SYSTEM_RUNNING in order to avoid scheduling before the scheduler is running. We can however, as per suggestion of Matt, use PREEMPT_ACTIVE to accomplish that very same. Suggested-by: Matt Mackall Signed-off-by: Peter Zijlstra Acked-by: Matt Mackall Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed