diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-12 10:14:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-12 10:14:22 -0700 |
commit | 9404ef02974a5411687b6c1b8ef3984305620e02 (patch) | |
tree | 9ffc2c51a06ad36d5c2c58b50c590e2ac8dceac0 /include/asm-s390/cache.h | |
parent | 2b753a1599a28612851a2908abdbf86802c989c5 (diff) |
Fix up 'need_resched()' definition
We should not go through the task pointer to get at the thread info,
since it's usually cheaper to just access the thread info directly.
So don't make the code look up 'current', when we can just use the
thread info accessor functions directly. This generally avoids one
level of indirection and tends to work better together with code that
also looks at other thread flags (eg preempt_count).
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-s390/cache.h')
0 files changed, 0 insertions, 0 deletions