===== 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 */ - -#include -#include -#include -#include -#include -#include -#include +#include +#include #include #include - /* * 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); }