diff options
author | Peter Zijlstra <[email protected]> | 2013-09-27 17:30:03 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-09-28 10:04:47 +0200 |
commit | 75f93fed50c2abadbab6ef546b265f51ca975b27 (patch) | |
tree | ae531501cb671c948baedb8e07111f8dda2d5036 /lib/mpi/mpiutil.c | |
parent | 1a338ac32ca630f67df25b4a16436cccc314e997 (diff) |
sched: Revert need_resched() to look at TIF_NEED_RESCHED
Yuanhan reported a serious throughput regression in his pigz
benchmark. Using the ftrace patch I found that several idle
paths need more TLC before we can switch the generic
need_resched() over to preempt_need_resched.
The preemption paths benefit most from preempt_need_resched and
do indeed use it; all other need_resched() users don't really
care that much so reverting need_resched() back to
tif_need_resched() is the simple and safe solution.
Reported-by: Yuanhan Liu <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Fengguang Wu <[email protected]>
Cc: Huang Ying <[email protected]>
Cc: [email protected]
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions