From: Russell Harmon <eatnumber1@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix for sched-cfs sysctl.
Date: Mon, 26 Nov 2007 08:31:31 -0500 [thread overview]
Message-ID: <474ACAB3.4080307@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
This trivial patch fixes a compilation error that occurs when
CONFIG_FAIR_GROUP_SCHED and !CONFIG_SMP.
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 678223a..8bebf25 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -330,7 +330,7 @@ static struct ctl_table kern_table[] = {
.mode = 644,
.proc_handler = &proc_dointvec,
},
-#ifdef CONFIG_FAIR_GROUP_SCHED
+#if defined(CONFIG_FAIR_GROUP_SCHED) && defined(CONFIG_SMP)
{
.ctl_name = CTL_UNNUMBERED,
.procname = "sched_min_bal_int_shares",
[-- Attachment #2: fix-sched-cfs-sysctl.patch --]
[-- Type: text/plain, Size: 410 bytes --]
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 678223a..8bebf25 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -330,7 +330,7 @@ static struct ctl_table kern_table[] = {
.mode = 644,
.proc_handler = &proc_dointvec,
},
-#ifdef CONFIG_FAIR_GROUP_SCHED
+#if defined(CONFIG_FAIR_GROUP_SCHED) && defined(CONFIG_SMP)
{
.ctl_name = CTL_UNNUMBERED,
.procname = "sched_min_bal_int_shares",
reply other threads:[~2007-11-26 13:32 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=474ACAB3.4080307@gmail.com \
--to=eatnumber1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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