All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus@valinux.co.jp>
From: Magnus Damm <magnus@valinux.co.jp>
To: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Cc: Magnus Damm <magnus@valinux.co.jp>
Subject: [PATCH 03/07] cpuset: smp or numa
Date: Fri, 30 Sep 2005 16:33:31 +0900 (JST)	[thread overview]
Message-ID: <20050930073248.10631.19432.sendpatchset@cherry.local> (raw)
In-Reply-To: <20050930073232.10631.63786.sendpatchset@cherry.local>

This patch for makes it possible to compile and use CONFIG_CPUSETS without 
CONFIG_SMP. Useful for NUMA emulation on real or emulated UP hardware.

Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
---

 init/Kconfig    |    2 +-
 kernel/cpuset.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

--- from-0002/init/Kconfig
+++ to-work/init/Kconfig	2005-09-28 17:07:31.000000000 +0900
@@ -245,7 +245,7 @@ config IKCONFIG_PROC
 
 config CPUSETS
 	bool "Cpuset support"
-	depends on SMP
+	depends on SMP || NUMA
 	help
 	  This option will let you create and manage CPUSETs which
 	  allow dynamically partitioning a system into sets of CPUs and
--- from-0002/kernel/cpuset.c
+++ to-work/kernel/cpuset.c	2005-09-28 17:07:31.000000000 +0900
@@ -657,6 +657,7 @@ static int validate_change(const struct 
 
 static void update_cpu_domains(struct cpuset *cur)
 {
+#ifdef CONFIG_SMP
 	struct cpuset *c, *par = cur->parent;
 	cpumask_t pspan, cspan;
 
@@ -694,6 +695,7 @@ static void update_cpu_domains(struct cp
 	lock_cpu_hotplug();
 	partition_sched_domains(&pspan, &cspan);
 	unlock_cpu_hotplug();
+#endif
 }
 
 static int update_cpumask(struct cpuset *cs, char *buf)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2005-09-30  7:33 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-30  7:33 [PATCH 00/07][RFC] i386: NUMA emulation Magnus Damm
2005-09-30  7:33 ` [PATCH 01/07] i386: srat non acpi Magnus Damm, Magnus Damm
2005-09-30  7:33 ` [PATCH 02/07] i386: numa on non-smp Magnus Damm, Magnus Damm
2005-09-30  7:33 ` Magnus Damm, Magnus Damm [this message]
2005-09-30  7:33 ` [PATCH 04/07] i386: numa warning fix Magnus Damm, Isaku Yamahata
2005-09-30  7:33 ` [PATCH 05/07] i386: sparsemem on pc Magnus Damm, Magnus Damm
2005-09-30 15:25   ` Dave Hansen
2005-09-30 15:25     ` Dave Hansen
2005-10-01  0:32     ` Magnus Damm
2005-10-01  0:32       ` Magnus Damm
2005-09-30  7:33 ` [PATCH 06/07] i386: discontigmem " Magnus Damm, Magnus Damm
2005-09-30  7:33 ` [PATCH 07/07] i386: numa emulation " Magnus Damm, Isaku Yamahata
2005-09-30 18:55   ` Dave Hansen
2005-09-30 18:55     ` Dave Hansen
2005-10-03  9:59     ` Magnus Damm
2005-10-03  9:59       ` Magnus Damm
2005-10-03 16:16       ` Dave Hansen
2005-10-03 16:16         ` Dave Hansen
2005-10-04  5:06         ` Magnus Damm
2005-10-04  5:06           ` Magnus Damm
2005-10-04  7:52   ` Hirokazu Takahashi
2005-10-04  7:52     ` Hirokazu Takahashi
2005-10-04  9:49     ` Magnus Damm
2005-10-04  9:49       ` Magnus Damm
2005-09-30 15:23 ` [PATCH 00/07][RFC] i386: NUMA emulation Dave Hansen
2005-09-30 15:23   ` Dave Hansen
2005-10-03  2:08   ` Magnus Damm
2005-10-03  2:08     ` Magnus Damm
2005-10-03  7:34     ` David Lang
2005-10-03  7:34       ` David Lang
2005-10-03 10:02       ` Magnus Damm
2005-10-03 10:02         ` Magnus Damm
2005-10-03 13:33         ` David Lang
2005-10-03 13:33           ` David Lang
2005-10-03 14:59           ` Martin J. Bligh
2005-10-03 14:59             ` Martin J. Bligh
2005-10-03 15:03             ` David Lang
2005-10-03 15:03               ` David Lang
2005-10-03 15:08               ` Martin J. Bligh
2005-10-03 15:08                 ` Martin J. Bligh
2005-10-03 15:13                 ` David Lang
2005-10-03 15:13                   ` David Lang
2005-10-03 15:25                   ` Martin J. Bligh
2005-10-03 15:25                     ` Martin J. Bligh
2005-10-03 15:32                     ` David Lang
2005-10-03 15:32                       ` David Lang
2005-10-03 15:54                       ` Martin J. Bligh
2005-10-03 15:54                         ` Martin J. Bligh
2005-10-03 16:44                         ` David Lang
2005-10-03 16:44                           ` David Lang
2005-10-03 14:45       ` Martin J. Bligh
2005-10-03 14:45         ` Martin J. Bligh
2005-10-03 14:49         ` David Lang
2005-10-03 14:49           ` David Lang
2005-10-03  3:21   ` Paul Jackson
2005-10-03  3:21     ` Paul Jackson
2005-10-03  5:05     ` Magnus Damm
2005-10-03  5:05       ` Magnus Damm
2005-10-03  5:26       ` Hirokazu Takahashi
2005-10-03  5:26         ` Hirokazu Takahashi
2005-10-03  5:33       ` Paul Jackson
2005-10-03  5:33         ` Paul Jackson
2005-10-03  5:59         ` Magnus Damm
2005-10-03  5:59           ` Magnus Damm
2005-10-03  7:26           ` Paul Jackson
2005-10-03  7:26             ` Paul Jackson
2005-10-03  5:34       ` Paul Jackson
2005-10-03  5:34         ` Paul Jackson

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=20050930073248.10631.19432.sendpatchset@cherry.local \
    --to=magnus@valinux.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.