linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Ravikiran G Thirumalai <kiran@in.ibm.com>,
	Andrew Morton <akpm@digeo.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	rusty@rustcorp.com.au
Subject: Re: 2.5.44-mm3
Date: Wed, 23 Oct 2002 07:25:47 -0700	[thread overview]
Message-ID: <2746454582.1035357946@[10.10.2.3]> (raw)
In-Reply-To: <20021023184317.A32662@in.ibm.com>

> My machine did not boot with CONFIG_NR_CPUS = 4.  Same .config as one
> used for 2.5.44-mm2.  Could be the __node_to_cpu_mask redifinition from
> the larger-cpu-masks patch .... 

I think Rusty is asleep now, but he sent me this earlier ... want
to try it? I just cut & pasted, so you'll have to apply it by hand.
As it is, you'll get 0 size for NR_CPUS < 8 I think.

M.

2.5.44-mm3-node-fix/include/asm-generic/topology.h
--- linux-2.5.44-mm3/include/asm-generic/topology.h	2002-10-23 12:03:14.000000000 +1000
+++ working-2.5.44-mm3-node-fix/include/asm-generic/topology.h	2002-10-23 19:47:36.000000000 +1000
@@ -42,7 +42,7 @@
 #define __node_to_first_cpu(node)	(0)
 #endif
 #ifndef __node_to_cpu_mask
-#define __node_to_cpu_mask(mask, node)	(memset((mask), 0xFF, NR_CPUS/8))
+#define __node_to_cpu_mask(mask, node)	(memset((mask), 0xFF, (NR_CPUS+7)/8))
 #endif
 #ifndef __node_to_memblk
 #define __node_to_memblk(node)		(0)


--
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/

      reply	other threads:[~2002-10-23 14:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-23  2:16 2.5.44-mm3 Andrew Morton
2002-10-23 13:13 ` 2.5.44-mm3 Ravikiran G Thirumalai
2002-10-23 14:25   ` Martin J. Bligh [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='2746454582.1035357946@[10.10.2.3]' \
    --to=mbligh@aracnet.com \
    --cc=akpm@digeo.com \
    --cc=kiran@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=rusty@rustcorp.com.au \
    /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