diff options
author | Bjoern B. Brandenburg <bbb@jupiter-cs.cs.unc.edu> | 2007-02-02 11:23:02 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@jupiter-cs.cs.unc.edu> | 2007-02-02 11:23:02 -0500 |
commit | a266f6b85ef79c472b3592a57ac5d69010904e06 (patch) | |
tree | 01147eaa023aa214ff987acee4bbd63e67268d2c /kernel | |
parent | ea1d83087015d64e7d36e87eacf2c2388fbe3281 (diff) |
resolve problems with conflicting function definitions in
sched.c
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 5 | ||||
-rw-r--r-- | kernel/sched.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index fc723e595c..57ee05252a 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -57,6 +57,8 @@ | |||
57 | #include <asm/cacheflush.h> | 57 | #include <asm/cacheflush.h> |
58 | #include <asm/tlbflush.h> | 58 | #include <asm/tlbflush.h> |
59 | 59 | ||
60 | #include <linux/sched_plugin.h> | ||
61 | |||
60 | /* | 62 | /* |
61 | * Protected counters by write_lock_irq(&tasklist_lock) | 63 | * Protected counters by write_lock_irq(&tasklist_lock) |
62 | */ | 64 | */ |
@@ -118,6 +120,9 @@ void __put_task_struct(struct task_struct *tsk) | |||
118 | WARN_ON(atomic_read(&tsk->usage)); | 120 | WARN_ON(atomic_read(&tsk->usage)); |
119 | WARN_ON(tsk == current); | 121 | WARN_ON(tsk == current); |
120 | 122 | ||
123 | if (is_realtime(tsk)) | ||
124 | curr_sched_plugin->tear_down(tsk); | ||
125 | |||
121 | security_task_free(tsk); | 126 | security_task_free(tsk); |
122 | free_uid(tsk->user); | 127 | free_uid(tsk->user); |
123 | put_group_info(tsk->group_info); | 128 | put_group_info(tsk->group_info); |
diff --git a/kernel/sched.c b/kernel/sched.c index 7c171d2ccb..86bbf35fae 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -56,6 +56,10 @@ | |||
56 | 56 | ||
57 | #include <asm/unistd.h> | 57 | #include <asm/unistd.h> |
58 | 58 | ||
59 | #include <linux/litmus.h> | ||
60 | #define __SCHED_C__ | ||
61 | #include <linux/sched_plugin.h> | ||
62 | |||
59 | /* | 63 | /* |
60 | * Convert user-nice values [ -20 ... 0 ... 19 ] | 64 | * Convert user-nice values [ -20 ... 0 ... 19 ] |
61 | * to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ], | 65 | * to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ], |