kernel-ark/include/asm-i386
Dave Hansen 408fde81c1 [PATCH] remove non-DISCONTIG use of pgdat->node_mem_map
This patch effectively eliminates direct use of pgdat->node_mem_map outside
of the DISCONTIG code.  On a flat memory system, these fields aren't
currently used, neither are they on a sparsemem system.

There was also a node_mem_map(nid) macro on many architectures.  Its use
along with the use of ->node_mem_map itself was not consistent.  It has
been removed in favor of two new, more explicit, arch-independent macros:

	pgdat_page_nr(pgdat, pagenr)
	nid_page_nr(nid, pagenr)

I called them "pgdat" and "nid" because we overload the term "node" to mean
"NUMA node", "DISCONTIG node" or "pg_data_t" in very confusing ways.  I
believe the newer names are much clearer.

These macros can be overridden in the sparsemem case with a theoretically
slower operation using node_start_pfn and pfn_to_page(), instead.  We could
make this the only behavior if people want, but I don't want to change too
much at once.  One thing at a time.

This patch removes more code than it adds.

Compile tested on alpha, alpha discontig, arm, arm-discontig, i386, i386
generic, NUMAQ, Summit, ppc64, ppc64 discontig, and x86_64.  Full list
here: http://sr71.net/patches/2.6.12/2.6.12-rc1-mhp2/configs/

Boot tested on NUMAQ, x86 SMP and ppc64 power4/5 LPARs.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Martin J. Bligh <mbligh@aracnet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-23 09:45:00 -07:00
..
mach-bigsmp
mach-default
mach-es7000
mach-generic
mach-numaq [PATCH] send_IPI_mask_sequence() warning fix 2005-06-07 13:39:26 -07:00
mach-summit
mach-visws
mach-voyager
8253pit.h
a.out.h
acpi.h
agp.h [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
apic.h [PATCH] check nmi watchdog is broken 2005-05-01 08:58:48 -07:00
apicdef.h
arch_hooks.h
atomic.h
bitops.h
boot.h
bug.h [PATCH] remove all kernel BUGs 2005-05-01 08:59:01 -07:00
bugs.h
byteorder.h
cache.h
cacheflush.h
checksum.h [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
cpu.h
cpufeature.h [PATCH] CPUID bug and inconsistency fix 2005-05-01 08:58:49 -07:00
cputime.h
current.h
debugreg.h
delay.h
desc.h
div64.h
dma-mapping.h
dma.h
e820.h [PATCH] Increase number of e820 entries hard limit from 32 to 128 2005-05-01 08:58:51 -07:00
elf.h
errno.h
fcntl.h
fixmap.h
floppy.h [PATCH] make some things static 2005-05-05 16:36:47 -07:00
genapic.h
hardirq.h
hdreg.h
highmem.h
hpet.h [PATCH] i386: fix hpet for systems that don't support legacy replacement 2005-05-01 08:58:50 -07:00
hw_irq.h
i387.h
i8259.h
ide.h
io_apic.h
io.h
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
irq.h
ist.h
kdebug.h
kmap_types.h
kprobes.h
ldt.h
linkage.h [PATCH] i386: fix prevent_tail_call 2005-05-26 16:16:16 -07:00
local.h
math_emu.h
mc146818rtc.h
mca_dma.h
mca.h
mman.h
mmu_context.h
mmu.h
mmx.h
mmzone.h [PATCH] remove non-DISCONTIG use of pgdat->node_mem_map 2005-06-23 09:45:00 -07:00
module.h [PATCH] x86: geode support fixes 2005-05-05 16:36:49 -07:00
mpspec_def.h
mpspec.h
msgbuf.h
msi.h
msr.h
mtrr.h
namei.h
nmi.h
node.h
numaq.h
numnodes.h
page.h [PATCH] Hugepage consolidation 2005-06-21 18:46:15 -07:00
param.h
parport.h
pci-direct.h
pci.h
percpu.h
pgalloc.h
pgtable-2level-defs.h
pgtable-2level.h
pgtable-3level-defs.h
pgtable-3level.h
pgtable.h [PATCH] Hugepage consolidation 2005-06-21 18:46:15 -07:00
poll.h
posix_types.h
processor.h [PATCH] x86_64: add support for Intel dual-core detection and displaying 2005-04-16 15:25:15 -07:00
ptrace.h
resource.h
rtc.h
rwlock.h
rwsem.h
scatterlist.h
seccomp.h
sections.h
segment.h
semaphore.h
sembuf.h
serial.h
setup.h [PATCH] Increase number of e820 entries hard limit from 32 to 128 2005-05-01 08:58:51 -07:00
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
smp.h [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
socket.h
sockios.h
spinlock.h
srat.h
stat.h
statfs.h
string.h [PATCH] fix i386 memcpy 2005-05-01 08:58:48 -07:00
suspend.h [PATCH] i386: Use loaddebug macro consistently 2005-04-16 15:24:46 -07:00
system.h [PATCH] i386/x86_64 segment register access update 2005-05-01 08:58:48 -07:00
termbits.h
termios.h
thread_info.h
timer.h [CPUFREQ] Recalibrate cpu_khz [2/2] 2005-05-31 19:03:46 -07:00
timex.h
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h [PATCH] VM: early zone reclaim 2005-06-21 18:46:14 -07:00
user.h
vga.h
vic.h
vm86.h
voyager.h
xor.h