Skip to contentSkip to conversation

Identify ingosched

PATCH In review Con Kolivas 1 participant 1 message Oct 30, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 20/28 Identify ingosched

Identify ingosched

Give ingosched it's unique identity.

include/linux/scheduler.h +13 -0
Index: linux-2.6.10-rc1-mm2-plugsched1/include/linux/scheduler.h
===================================================================
@@ -1,5 +1,13 @@
+/*
+ * include/linux/scheduler.h
+ * This contains the driver struct for all the exported per-cpu-scheduler
+ * functions, and the private per-scheduler data in task_struct.
+ */
 #define SCHED_NAME_MAX	(16)
 
+/*
+ * This is the main scheduler driver struct.
+ */
 struct sched_drv
 {
 	char cpusched_name[SCHED_NAME_MAX];
@@ -40,6 +48,11 @@ struct sched_drv
 #endif
 };
 
+/*
+ * All private per-scheduler entries in task_struct are defined here as
+ * separate structs placed into the cpusched union in task_struct.
+ */
+
 struct cpusched_ingo {
 	int prio;
 	struct list_head run_list;
kernel/sched.c +1 -1
Index: linux-2.6.10-rc1-mm2-plugsched1/kernel/sched.c
===================================================================
@@ -1,7 +1,7 @@
 /*
  *  kernel/sched.c
  *
- *  Kernel scheduler and related syscalls
+ *  This is "ingosched"; the default cpu scheduler.
  *
  *  Copyright (C) 1991-2002  Linus Torvalds
  *
kernel/scheduler.c +1 -1
Index: linux-2.6.10-rc1-mm2-plugsched1/kernel/scheduler.c
===================================================================
@@ -879,7 +879,7 @@ EXPORT_SYMBOL(complete_all);
 
 extern struct sched_drv ingo_sched_drv;
 
-static struct sched_drv *scheduler = &ingo_sched_drv;
+struct sched_drv *scheduler = &ingo_sched_drv;
 
 static int __init scheduler_setup(char *str)
 {