export sched_setscheduler() for kernel module use
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.
Signed-off-by Dean Nelson <[email protected]>
include/linux/sched.h +1 -0
@@ -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
Quoted 4 lines · Dean Nelson
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.Signed-off-by Dean Nelson <[email protected]>
looks good for post-2.6.10.
Acked-by Ingo Molnar <[email protected]>
Ingo