Ignore:
Timestamp:
Jun 6, 2009, 4:22:27 AM (16 years ago)
Author:
Paul Smedley
Message:

Move functions out of config.h into appropriate linux header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/include/linux/sched.h

    r351 r441  
    1414#define TASK_SWAPPING           16
    1515#define TASK_EXCLUSIVE          32
     16
     17#define set_current_state(a)
    1618
    1719struct task_struct {
     
    4749void schedule(void);
    4850
     51#define cond_resched() \
     52        do { \
     53                if (1) { \
     54                        set_current_state(TASK_RUNNING); \
     55                        schedule(); \
     56                } \
     57        } while (0)
     58
    4959// 12 Jun 07 SHL Drop superfluous near
    5060#if 0
     
    6878}
    6979
     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
    7090#endif /* _LINUX_SCHED_H */
Note: See TracChangeset for help on using the changeset viewer.