| commit | 3cdc12889856fde818ab430ae5daae1315724402 | [log] [tgz] |
|---|---|---|
| author | Andi Kleen <ak@linux.intel.com> | Sat May 19 18:28:05 2012 -0700 |
| committer | Andi Kleen <ak@linux.intel.com> | Thu Aug 15 14:32:17 2013 -0700 |
| tree | efabafc161d15e60ee9c93ea02f862322cb92ca3 | |
| parent | 633e05f8c6b5d4e6e60c14ebc104472e3e5030cc [diff] |
sched: Inline the need_resched test into the caller for _cond_resched _cond_resched does at least two explicit calls just to decide to do nothing: _cond_resched and should_resched(). Inline a need_resched() into the caller to avoid these calls in the common case of no reschedule being needed. Signed-off-by: Andi Kleen <ak@linux.intel.com>