aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@jupiter-cs.cs.unc.edu>2007-02-01 13:49:21 -0500
committerBjoern B. Brandenburg <bbb@jupiter-cs.cs.unc.edu>2007-02-01 13:49:21 -0500
commit5e1f1052b92413f1f6758dae8908db5d725d5e4c (patch)
tree9c431a5f32dd69790ff9e1d258fe9876ffd8ff88 /include
parent7bff4cd58ebd8a034878970fd2cf411b2d1fd85e (diff)
cleaned out sched_plugin.h
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched_plugin.h20
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
22typedef 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 */
23typedef int (*scheduler_tick_t) (void); 29typedef reschedule_check_t (*scheduler_tick_t) (void);
24/* Novell make sched decision function */ 30/* Novell make sched decision function */
25typedef int (*schedule_t) (struct task_struct * prev, 31typedef int (*schedule_t) (struct task_struct * prev,
26 struct task_struct ** next, 32 struct task_struct ** next,
@@ -84,19 +90,7 @@ struct sched_plugin {
84typedef struct sched_plugin sched_plugin_t; 90typedef struct sched_plugin sched_plugin_t;
85 91
86extern sched_plugin_t *curr_sched_plugin; 92extern 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 */
99extern int rt_scheduler_tick(void);
100 94
101/* External linux scheduler facilities */ 95/* External linux scheduler facilities */
102extern void deactivate_task(struct task_struct *, runqueue_t *); 96extern void deactivate_task(struct task_struct *, runqueue_t *);