[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-8c083f081d0014057901c68a0a3e0f8ca7ac8d23@git.kernel.org>
Date: Thu, 19 Mar 2009 13:03:25 GMT
From: Rusty Russell <rusty@...tcorp.com.au>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
rusty@...tcorp.com.au, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:cpus4096] cpumask: remove cpumask allocation from idle_balance, fix
Commit-ID: 8c083f081d0014057901c68a0a3e0f8ca7ac8d23
Gitweb: http://git.kernel.org/tip/8c083f081d0014057901c68a0a3e0f8ca7ac8d23
Author: Rusty Russell <rusty@...tcorp.com.au>
AuthorDate: Thu, 19 Mar 2009 15:22:20 +1030
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Thu, 19 Mar 2009 13:49:44 +0100
cpumask: remove cpumask allocation from idle_balance, fix
Impact: fix boot crash
Fix typo in the size calculation.
Reported-by: Ingo Molnar <mingo@...e.hu>
Signed-off-by: Rusty Russell <rusty@...tcorp.com.au>
LKML-Reference: <alpine.DEB.2.00.0903181729360.31583@...dalf.stny.rr.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 48862d4..11dd527 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8297,7 +8297,7 @@ void __init sched_init(void)
alloc_size *= 2;
#endif
#ifdef CONFIG_CPUMASK_OFFSTACK
- alloc_size *= num_possible_cpus() * cpumask_size();
+ alloc_size += num_possible_cpus() * cpumask_size();
#endif
/*
* As sched_init() is called before page_alloc is setup,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists