public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: edwardsg@sgi.com (Greg Edwards)
To: linux-ia64@vger.kernel.org
Subject: [PATCH] Remove SN PDA page overflow check
Date: Mon, 26 Apr 2004 18:42:50 +0000	[thread overview]
Message-ID: <20040426184250.GH5165@sgi.com> (raw)

There's an obsolete check in sn_init_pdas() left over from the 2.4
days that panics if the cpu PDA and cpu_data area span more than a page.
With 2.6, we're not limited to a page, so remove the check entirely.

Patch against linux-2.5 bk.

Regards,
Greg Edwards


=== arch/ia64/sn/kernel/setup.c 1.34 vs edited ==--- 1.34/arch/ia64/sn/kernel/setup.c	Mon Mar 15 08:19:50 2004
+++ edited/arch/ia64/sn/kernel/setup.c	Mon Apr 26 13:20:38 2004
@@ -361,13 +361,6 @@
 {
 	cnodeid_t	cnode;
 
-	/*
-	 * Make sure that the PDA fits entirely in the same page as the 
-	 * cpu_data area.
-	 */
-	if ((((unsigned long)pda & (~PAGE_MASK)) + sizeof(pda_t)) > PAGE_SIZE)
-		panic("overflow of cpu_data page");
-
 	memset(pda->cnodeid_to_nasid_table, -1, sizeof(pda->cnodeid_to_nasid_table));
 	for (cnode=0; cnode<numnodes; cnode++)
 		pda->cnodeid_to_nasid_table[cnode] = pxm_to_nasid(nid_to_pxm_map[cnode]);

                 reply	other threads:[~2004-04-26 18:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040426184250.GH5165@sgi.com \
    --to=edwardsg@sgi.com \
    --cc=linux-ia64@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox