diff mbox

numa: Don't limit node count by smp count

Message ID 1301360213.3390.5.camel@sasha (mailing list archive)
State New, archived
Headers show

Commit Message

Sasha Levin March 29, 2011, 12:56 a.m. UTC
None
diff mbox

Patch

diff --git a/vl.c b/vl.c
index 8bcf2ae..8cc1aa8 100644
--- a/vl.c
+++ b/vl.c
@@ -3002,8 +3002,8 @@  int main(int argc, char **argv, char **envp)
     if (nb_numa_nodes > 0) {
         int i;
 
-        if (nb_numa_nodes > smp_cpus) {
-            nb_numa_nodes = smp_cpus;
+        if (nb_numa_nodes > MAX_NODES) {
+            nb_numa_nodes = MAX_NODES;
         }
 
         /* If no memory size if given for any node, assume the default