diff options
author | Peter Zijlstra <[email protected]> | 2009-07-10 14:57:57 +0200 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-07-10 14:24:05 -0700 |
commit | d86ee4809d0329d4aa0d0f2c76c2295a16862799 (patch) | |
tree | 32b3eaf766c1127ef2298c2e48b5441b7cf9b843 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | c99e6efe1ba04561e7d93a81f0be07e37427e835 (diff) |
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 <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Acked-by: Matt Mackall <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions