mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
	rusty@rustcorp.com.au, tglx@linutronix.de, mingo@elte.hu
Subject: [tip:cpus4096] cpumask: remove cpumask allocation from idle_balance, fix
Date: Thu, 19 Mar 2009 13:03:25 GMT	[thread overview]
Message-ID: <tip-8c083f081d0014057901c68a0a3e0f8ca7ac8d23@git.kernel.org> (raw)
In-Reply-To: <alpine.DEB.2.00.0903181729360.31583@gandalf.stny.rr.com>

Commit-ID:  8c083f081d0014057901c68a0a3e0f8ca7ac8d23
Gitweb:     http://git.kernel.org/tip/8c083f081d0014057901c68a0a3e0f8ca7ac8d23
Author:     Rusty Russell <rusty@rustcorp.com.au>
AuthorDate: Thu, 19 Mar 2009 15:22:20 +1030
Committer:  Ingo Molnar <mingo@elte.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@elte.hu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
LKML-Reference: <alpine.DEB.2.00.0903181729360.31583@gandalf.stny.rr.com>
Signed-off-by: Ingo Molnar <mingo@elte.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,

      parent reply	other threads:[~2009-03-19 13:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-18 21:33 [BUG] circular lock dependency in tip Steven Rostedt
2009-03-18 21:51 ` Steven Rostedt
2009-03-19  0:59   ` Rusty Russell
2009-03-19  2:27     ` Steven Rostedt
2009-03-19  4:52       ` [PATCH] cpumask: remove cpumask allocation from idle_balance Rusty Russell
2009-03-19 12:40         ` Rusty Russell
2009-03-19 13:24           ` Ingo Molnar
2009-03-19 13:25             ` Ingo Molnar
2009-03-19 16:29             ` Ingo Molnar
2009-03-19 16:55               ` Jeremy Fitzhardinge
2009-03-19 17:01                 ` Ingo Molnar
2009-03-20 17:48               ` Ingo Molnar
2009-03-19  7:36 ` [tip:cpus4096] " Rusty Russell
2009-03-19  8:30   ` [crash] " Ingo Molnar
2009-03-19 13:03 ` Rusty Russell [this message]

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=tip-8c083f081d0014057901c68a0a3e0f8ca7ac8d23@git.kernel.org \
    --to=rusty@rustcorp.com.au \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /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