diff options
author | Bjoern Brandenburg <bb@DS-12.(none)> | 2007-02-05 14:37:19 -0500 |
---|---|---|
committer | Bjoern Brandenburg <bb@DS-12.(none)> | 2007-02-05 14:37:19 -0500 |
commit | 8370c02df9081469ce07a1689a9fb1c970d166a3 (patch) | |
tree | c84b85428740df049fa1fc9580efb3e8637080a1 /include | |
parent | e82442320ac062ac83149cd37daeb746f6f25b2c (diff) |
Fix a bunch of bugs that crept in while porting.
* Our old clone flag is already taken in 2.6.20.
* Fix wrong is_running() macro.
* Remove double ->finish_switch() call.
* Move sched_trace_scheduled to non-preemtible section.
* Allow next = idle task in RT mode.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/litmus.h | 1 | ||||
-rw-r--r-- | include/linux/rt_param.h | 2 | ||||
-rw-r--r-- | include/linux/sched.h | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/litmus.h b/include/linux/litmus.h index bbc68ae25c..529385d5f8 100644 --- a/include/linux/litmus.h +++ b/include/linux/litmus.h | |||
@@ -66,7 +66,6 @@ typedef enum { | |||
66 | we just set its state to TASK_STOPPED | 66 | we just set its state to TASK_STOPPED |
67 | It must be prepared and added to the ready queue explicitly | 67 | It must be prepared and added to the ready queue explicitly |
68 | */ | 68 | */ |
69 | #define CLONE_REALTIME 0x04000000 | ||
70 | 69 | ||
71 | /* Type definition for our quantums */ | 70 | /* Type definition for our quantums */ |
72 | typedef unsigned long long quantum_t; | 71 | typedef unsigned long long quantum_t; |
diff --git a/include/linux/rt_param.h b/include/linux/rt_param.h index 1d8e67f86a..1247a2ab22 100644 --- a/include/linux/rt_param.h +++ b/include/linux/rt_param.h | |||
@@ -102,7 +102,7 @@ memset(&(t)->rt_param,0, sizeof(struct task_rt_param)) | |||
102 | #define get_last_release_time(t) ((t)->rt_param.times.last_release) | 102 | #define get_last_release_time(t) ((t)->rt_param.times.last_release) |
103 | #define set_last_release_time(t,r) ((t)->rt_param.times.last_releasee=(r)) | 103 | #define set_last_release_time(t,r) ((t)->rt_param.times.last_releasee=(r)) |
104 | 104 | ||
105 | #define is_running(t) ((t)->state & TASK_RUNNING) | 105 | #define is_running(t) ((t)->state == TASK_RUNNING) |
106 | #define is_released(t) (time_before_eq((t)->rt_param.times.release, jiffies)) | 106 | #define is_released(t) (time_before_eq((t)->rt_param.times.release, jiffies)) |
107 | #define is_tardy(t) (time_before_eq((t)->rt_param.times.deadline, jiffies)) | 107 | #define is_tardy(t) (time_before_eq((t)->rt_param.times.deadline, jiffies)) |
108 | #define task_slack(t) ( (int) (t)->rt_param.times.deadline - (int) jiffies - \ | 108 | #define task_slack(t) ( (int) (t)->rt_param.times.deadline - (int) jiffies - \ |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9a8eea140a..f533ae3c63 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -28,6 +28,8 @@ | |||
28 | #define CLONE_STOPPED 0x02000000 /* Start in stopped state */ | 28 | #define CLONE_STOPPED 0x02000000 /* Start in stopped state */ |
29 | #define CLONE_NEWUTS 0x04000000 /* New utsname group? */ | 29 | #define CLONE_NEWUTS 0x04000000 /* New utsname group? */ |
30 | #define CLONE_NEWIPC 0x08000000 /* New ipcs */ | 30 | #define CLONE_NEWIPC 0x08000000 /* New ipcs */ |
31 | #define CLONE_REALTIME 0x10000000 /* LITMUS real-time task creation */ | ||
32 | |||
31 | 33 | ||
32 | /* | 34 | /* |
33 | * Scheduling policies | 35 | * Scheduling policies |