Changeset 441 for GPL/trunk/include/linux/sched.h
- Timestamp:
- Jun 6, 2009, 4:22:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/include/linux/sched.h
r351 r441 14 14 #define TASK_SWAPPING 16 15 15 #define TASK_EXCLUSIVE 32 16 17 #define set_current_state(a) 16 18 17 19 struct task_struct { … … 47 49 void schedule(void); 48 50 51 #define cond_resched() \ 52 do { \ 53 if (1) { \ 54 set_current_state(TASK_RUNNING); \ 55 schedule(); \ 56 } \ 57 } while (0) 58 49 59 // 12 Jun 07 SHL Drop superfluous near 50 60 #if 0 … … 68 78 } 69 79 80 #define flush_scheduled_work() 81 82 #define schedule_timeout_interruptible(x) \ 83 set_current_state(TASK_INTERRUPTIBLE); \ 84 schedule_timeout(x); 85 86 #define schedule_timeout_uninterruptible(x) \ 87 set_current_state(TASK_UNINTERRUPTIBLE); \ 88 schedule_timeout(x); 89 70 90 #endif /* _LINUX_SCHED_H */
Note:
See TracChangeset
for help on using the changeset viewer.