diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-05-17 10:01:05 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-17 10:01:05 -0400 |
commit | 0e50a4c6ab94ffe7e5515b86b5df9e5abc8c6b13 (patch) | |
tree | 3c688483e71261f564fc43be3157b337ae340dca /include/linux/sched.h | |
parent | 34b2cd5b688b012975fcfc3b3970fc3508fa82c4 (diff) | |
parent | f26a3988917913b3d11b2bd741601a2c64ab9204 (diff) |
Merge branch 'linus' into x86/pebs
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 4ab9f32f9238..5395a6176f4b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2027,7 +2027,7 @@ static inline int fatal_signal_pending(struct task_struct *p) | |||
2027 | 2027 | ||
2028 | static inline int need_resched(void) | 2028 | static inline int need_resched(void) |
2029 | { | 2029 | { |
2030 | return unlikely(test_tsk_need_resched(current)); | 2030 | return unlikely(test_thread_flag(TIF_NEED_RESCHED)); |
2031 | } | 2031 | } |
2032 | 2032 | ||
2033 | /* | 2033 | /* |
@@ -2038,7 +2038,7 @@ static inline int need_resched(void) | |||
2038 | * cond_resched_softirq() will enable bhs before scheduling. | 2038 | * cond_resched_softirq() will enable bhs before scheduling. |
2039 | */ | 2039 | */ |
2040 | extern int _cond_resched(void); | 2040 | extern int _cond_resched(void); |
2041 | #ifdef CONFIG_PREEMPT | 2041 | #ifdef CONFIG_PREEMPT_BKL |
2042 | static inline int cond_resched(void) | 2042 | static inline int cond_resched(void) |
2043 | { | 2043 | { |
2044 | return 0; | 2044 | return 0; |