From: Con Kolivas <kernel@kolivas.org>
To: linux <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>, Ingo Molnar <mingo@elte.hu>,
Peter Williams <pwil3058@bigpond.net.au>,
William Lee Irwin III <wli@holomorphy.com>,
Alexander Nyberg <alexn@dsv.su.se>,
Nick Piggin <nickpiggin@yahoo.com.au>
Subject: [PATCH][plugsched 20/28] Identify ingosched
Date: Sun, 31 Oct 2004 00:40:25 +1000 [thread overview]
Message-ID: <4183A7D9.9030307@kolivas.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 20 bytes --]
Identify ingosched
[-- Attachment #1.2: combine_headers.diff --]
[-- Type: text/x-patch, Size: 2087 bytes --]
Give ingosched it's unique identity.
Signed-off-by: Con Kolivas <kernel@kolivas.org>
Index: linux-2.6.10-rc1-mm2-plugsched1/include/linux/scheduler.h
===================================================================
--- linux-2.6.10-rc1-mm2-plugsched1.orig/include/linux/scheduler.h 2004-10-29 21:48:05.209648954 +1000
+++ linux-2.6.10-rc1-mm2-plugsched1/include/linux/scheduler.h 2004-10-29 21:48:08.235176780 +1000
@@ -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;
Index: linux-2.6.10-rc1-mm2-plugsched1/kernel/sched.c
===================================================================
--- linux-2.6.10-rc1-mm2-plugsched1.orig/kernel/sched.c 2004-10-29 21:48:05.211648642 +1000
+++ linux-2.6.10-rc1-mm2-plugsched1/kernel/sched.c 2004-10-29 21:48:08.237176468 +1000
@@ -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
*
Index: linux-2.6.10-rc1-mm2-plugsched1/kernel/scheduler.c
===================================================================
--- linux-2.6.10-rc1-mm2-plugsched1.orig/kernel/scheduler.c 2004-10-29 21:48:05.212648486 +1000
+++ linux-2.6.10-rc1-mm2-plugsched1/kernel/scheduler.c 2004-10-29 21:48:08.238176312 +1000
@@ -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)
{
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
reply other threads:[~2004-10-30 15:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4183A7D9.9030307@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@osdl.org \
--cc=alexn@dsv.su.se \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nickpiggin@yahoo.com.au \
--cc=pwil3058@bigpond.net.au \
--cc=wli@holomorphy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome