Skip to contentSkip to conversation

export sched_setscheduler() for kernel module use

PATCH In review Dean Nelson 2 participants 2 messages Dec 13, 2004 – Dec 15, 2004 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 export sched_setscheduler() for kernel module use

This patch exports sched_setscheduler() so that it can be used by a kernel module to set a kthread's scheduling policy and associated parameters.

include/linux/sched.h +1 -0
Index: linux-2.6/include/linux/sched.h
===================================================================
@@ -740,6 +740,7 @@
 extern int task_nice(const task_t *p);
 extern int task_curr(const task_t *p);
 extern int idle_cpu(int cpu);
+extern int sched_setscheduler(struct task_struct *, int, struct sched_param *);
 
 void yield(void);
 
kernel/sched.c +45 -46

157 lines not on this page · raw message