| .. | .. |
|---|
| 110 | 110 | #define test_thread_flag(flag) \ |
|---|
| 111 | 111 | test_ti_thread_flag(current_thread_info(), flag) |
|---|
| 112 | 112 | |
|---|
| 113 | | -#ifdef CONFIG_PREEMPT_LAZY |
|---|
| 114 | | -#define tif_need_resched() (test_thread_flag(TIF_NEED_RESCHED) || \ |
|---|
| 115 | | - test_thread_flag(TIF_NEED_RESCHED_LAZY)) |
|---|
| 116 | | -#define tif_need_resched_now() (test_thread_flag(TIF_NEED_RESCHED)) |
|---|
| 117 | | -#define tif_need_resched_lazy() test_thread_flag(TIF_NEED_RESCHED_LAZY)) |
|---|
| 118 | | - |
|---|
| 119 | | -#else |
|---|
| 120 | | -#define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) |
|---|
| 121 | | -#define tif_need_resched_now() test_thread_flag(TIF_NEED_RESCHED) |
|---|
| 122 | | -#define tif_need_resched_lazy() 0 |
|---|
| 123 | | -#endif |
|---|
| 113 | +#define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) |
|---|
| 124 | 114 | |
|---|
| 125 | 115 | #ifndef CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES |
|---|
| 126 | 116 | static inline int arch_within_stack_frames(const void * const stack, |
|---|