diff options
author | Bjoern B. Brandenburg <bbb@jupiter-cs.cs.unc.edu> | 2007-02-01 13:49:21 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@jupiter-cs.cs.unc.edu> | 2007-02-01 13:49:21 -0500 |
commit | 5e1f1052b92413f1f6758dae8908db5d725d5e4c (patch) | |
tree | 9c431a5f32dd69790ff9e1d258fe9876ffd8ff88 /include | |
parent | 7bff4cd58ebd8a034878970fd2cf411b2d1fd85e (diff) |
cleaned out sched_plugin.h
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched_plugin.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/include/linux/sched_plugin.h b/include/linux/sched_plugin.h index 6e4c5b9079..df33234bd3 100644 --- a/include/linux/sched_plugin.h +++ b/include/linux/sched_plugin.h | |||
@@ -19,8 +19,14 @@ typedef void (*plugin_shutdown_hook_t) (void); | |||
19 | 19 | ||
20 | /********************* scheduler invocation ******************/ | 20 | /********************* scheduler invocation ******************/ |
21 | 21 | ||
22 | typedef enum { | ||
23 | NO_RESCHED =0, | ||
24 | FORCE_RESCHED = 1 | ||
25 | } reschedule_check_t; | ||
26 | |||
27 | |||
22 | /* Plugin-specific realtime tick handler */ | 28 | /* Plugin-specific realtime tick handler */ |
23 | typedef int (*scheduler_tick_t) (void); | 29 | typedef reschedule_check_t (*scheduler_tick_t) (void); |
24 | /* Novell make sched decision function */ | 30 | /* Novell make sched decision function */ |
25 | typedef int (*schedule_t) (struct task_struct * prev, | 31 | typedef int (*schedule_t) (struct task_struct * prev, |
26 | struct task_struct ** next, | 32 | struct task_struct ** next, |
@@ -84,19 +90,7 @@ struct sched_plugin { | |||
84 | typedef struct sched_plugin sched_plugin_t; | 90 | typedef struct sched_plugin sched_plugin_t; |
85 | 91 | ||
86 | extern sched_plugin_t *curr_sched_plugin; | 92 | extern sched_plugin_t *curr_sched_plugin; |
87 | //extern struct file_operations plugin_schedstat_operations; | ||
88 | |||
89 | //extern void linux_scheduler_tick(int, int); | ||
90 | |||
91 | #define FORCE_RESCHED 1 | ||
92 | #define FORCE_NO_RESCHED 0 | ||
93 | //extern void linux_scheduler_tick_bh(int,int,unsigned long long,int,int); | ||
94 | |||
95 | /* Check the flag of RT mode */ | ||
96 | //extern int get_rt_mode_ex(void); | ||
97 | 93 | ||
98 | /* External rt scheduler wrapper */ | ||
99 | extern int rt_scheduler_tick(void); | ||
100 | 94 | ||
101 | /* External linux scheduler facilities */ | 95 | /* External linux scheduler facilities */ |
102 | extern void deactivate_task(struct task_struct *, runqueue_t *); | 96 | extern void deactivate_task(struct task_struct *, runqueue_t *); |