From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] long line, codingstyle, & include cleanups for numa.c
Date: Fri, 07 Jan 2005 00:19:08 +0000 [thread overview]
Message-ID: <200501061619.08795.jbarnes@engr.sgi.com> (raw)
In-Reply-To: <200501061609.20040.jbarnes@engr.sgi.com>
[-- Attachment #1: Type: text/plain, Size: 148 bytes --]
Remove a bunch of unused #includes, fix long lines, and fixup codingstyle in
numa.c.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Thanks,
Jesse
[-- Attachment #2: numa-cleanup.patch --]
[-- Type: text/plain, Size: 1423 bytes --]
===== arch/ia64/mm/numa.c 1.9 vs edited =====
--- 1.9/arch/ia64/mm/numa.c 2004-10-28 00:36:29 -07:00
+++ edited/arch/ia64/mm/numa.c 2005-01-06 16:00:32 -08:00
@@ -6,21 +6,14 @@
* This file contains NUMA specific variables and functions which can
* be split away from DISCONTIGMEM and are used on NUMA machines with
* contiguous memory.
- *
+ *
* 2002/08/07 Erich Focht <efocht@ess.nec.de>
*/
-
-#include <linux/config.h>
-#include <linux/cpu.h>
-#include <linux/kernel.h>
-#include <linux/mm.h>
-#include <linux/node.h>
-#include <linux/init.h>
-#include <linux/bootmem.h>
+#include <linux/numa.h>
+#include <linux/threads.h>
#include <asm/mmzone.h>
#include <asm/numa.h>
-
/*
* The following structures are usually initialized by ACPI or
* similar mechanisms and describe the NUMA characteristics of the machine.
@@ -35,15 +28,15 @@
u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES];
/* Identify which cnode a physical address resides on */
-int
-paddr_to_nid(unsigned long paddr)
+int paddr_to_nid(unsigned long paddr)
{
- int i;
+ int i;
for (i = 0; i < num_node_memblks; i++)
if (paddr >= node_memblk[i].start_paddr &&
paddr < node_memblk[i].start_paddr + node_memblk[i].size)
break;
- return (i < num_node_memblks) ? node_memblk[i].nid : (num_node_memblks ? -1 : 0);
+ return (i < num_node_memblks) ? node_memblk[i].nid :
+ (num_node_memblks ? -1 : 0);
}
prev parent reply other threads:[~2005-01-07 0:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-07 0:09 [PATCH] long line, codingstyle, & include file cleanup for extable.c Jesse Barnes
2005-01-07 0:19 ` Jesse Barnes [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=200501061619.08795.jbarnes@engr.sgi.com \
--to=jbarnes@engr.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