diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-02-22 09:57:36 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-02-22 09:57:36 -0500 |
commit | 8f5bf0fb6f9710dead8a9af2fb94c8119a1e4ede (patch) | |
tree | 2540bd814ba1a39301180c6690a1533f651e4d12 /kernel | |
parent | 0df772d53bf0242e14b22ae18a8c04e50388c22a (diff) |
always call mode change callback
The current plugin's mode change callback was not being called when
switching from RT mode to NON-RT mode.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/litmus.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/kernel/litmus.c b/kernel/litmus.c index 04a28159e1..7e7c56e7ff 100644 --- a/kernel/litmus.c +++ b/kernel/litmus.c | |||
@@ -9,10 +9,6 @@ | |||
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/sched_plugin.h> | 10 | #include <linux/sched_plugin.h> |
11 | 11 | ||
12 | /*CLEANUP: Include when ported. | ||
13 | #include <linux/plugin_trace.h> | ||
14 | */ | ||
15 | |||
16 | 12 | ||
17 | /* Variables that govern the scheduling process */ | 13 | /* Variables that govern the scheduling process */ |
18 | spolicy sched_policy = SCHED_DEFAULT; | 14 | spolicy sched_policy = SCHED_DEFAULT; |
@@ -256,10 +252,10 @@ reschedule_check_t __sched rt_scheduler_tick(void) | |||
256 | /* update rt start time */ | 252 | /* update rt start time */ |
257 | rt_start_time = jiffies; | 253 | rt_start_time = jiffies; |
258 | printk(KERN_INFO "Real-Time mode enabled\n"); | 254 | printk(KERN_INFO "Real-Time mode enabled\n"); |
259 | if (curr_sched_plugin->mode_change) | ||
260 | curr_sched_plugin-> | ||
261 | mode_change(atomic_read(&new_mode)); | ||
262 | } | 255 | } |
256 | if (curr_sched_plugin->mode_change) | ||
257 | curr_sched_plugin-> | ||
258 | mode_change(atomic_read(&new_mode)); | ||
263 | set_rt_mode(atomic_read(&new_mode)); | 259 | set_rt_mode(atomic_read(&new_mode)); |
264 | queue_unlock(&mode_change_lock); | 260 | queue_unlock(&mode_change_lock); |
265 | } | 261 | } |