linux-stable-rt/include/asm-ia64
David Gibson 42b88befd6 [PATCH] hugepage: is_aligned_hugepage_range() cleanup
Quite a long time back, prepare_hugepage_range() replaced
is_aligned_hugepage_range() as the callback from mm/mmap.c to arch code to
verify if an address range is suitable for a hugepage mapping.
is_aligned_hugepage_range() stuck around, but only to implement
prepare_hugepage_range() on archs which didn't implement their own.

Most archs (everything except ia64 and powerpc) used the same
implementation of is_aligned_hugepage_range().  On powerpc, which
implements its own prepare_hugepage_range(), the custom version was never
used.

In addition, "is_aligned_hugepage_range()" was a bad name, because it
suggests it returns true iff the given range is a good hugepage range,
whereas in fact it returns 0-or-error (so the sense is reversed).

This patch cleans up by abolishing is_aligned_hugepage_range().  Instead
prepare_hugepage_range() is defined directly.  Most archs use the default
version, which simply checks the given region is aligned to the size of a
hugepage.  ia64 and powerpc define custom versions.  The ia64 one simply
checks that the range is in the correct address space region in addition to
being suitably aligned.  The powerpc version (just as previously) checks
for suitable addresses, and if necessary performs low-level MMU frobbing to
set up new areas for use by hugepages.

No libhugetlbfs testsuite regressions on ppc64 (POWER5 LPAR).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-22 07:54:04 -08:00
..
sn Pull sn2-reduce-kmalloc-wrap into release branch 2006-03-21 08:22:56 -08:00
a.out.h
acpi-ext.h
acpi.h [IA64] Count disabled cpus as potential hot-pluggable CPUs 2006-02-14 15:37:58 -08:00
agp.h
asmmacro.h
atomic.h [PATCH] mutex subsystem, add atomic_xchg() to all arches 2006-01-09 15:59:17 -08:00
auxvec.h
bitops.h
break.h
bug.h [PATCH] remove gcc-2 checks 2006-01-08 20:14:02 -08:00
bugs.h
byteorder.h
cache.h [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
cacheflush.h
checksum.h
compat.h [PATCH] ia64: task_pt_regs() 2006-01-12 09:08:58 -08:00
cpu.h
cputime.h
current.h
cyclone.h
delay.h
div64.h
dma-mapping.h
dma.h
elf.h
emergency-restart.h
errno.h
fcntl.h
fpswa.h
fpu.h
futex.h [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
gcc_intrin.h
hardirq.h
hw_irq.h
ia32.h
ia64regs.h
ide.h [PATCH] ia64: drop arch-specific IDE MAX_HWIFS definition 2006-02-03 08:32:11 -08:00
intel_intrin.h [IA64] use icc defined constant 2006-02-07 08:49:27 -08:00
intrinsics.h
io.h [PATCH] /dev/mem: validate mmap requests 2006-01-08 20:14:02 -08:00
ioctl.h [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
ioctls.h
iosapic.h
ipcbuf.h
irq.h
kdebug.h
kmap_types.h
kprobes.h [IA64] prevent accidental modification of args in jprobe handler 2006-01-13 14:45:21 -08:00
kregs.h
linkage.h
local.h
machvec.h [IA64] hooks to wait for mmio writes to drain when migrating processes 2006-01-26 15:55:52 -08:00
machvec_dig.h
machvec_hpsim.h
machvec_hpzx1.h
machvec_hpzx1_swiotlb.h
machvec_init.h
machvec_sn2.h Pull sn2-mmio-writes into release branch 2006-03-21 08:21:26 -08:00
mc146818rtc.h
mca.h
mca_asm.h
meminit.h
mman.h [PATCH] add asm-generic/mman.h 2006-02-15 15:32:22 -08:00
mmu.h
mmu_context.h
mmzone.h
module.h
msgbuf.h
msi.h
mutex.h [IA64] implement ia64 specific mutex primitives 2006-01-26 13:10:19 -08:00
namei.h
nodedata.h
numa.h
numnodes.h
page.h [PATCH] hugepage: is_aligned_hugepage_range() cleanup 2006-03-22 07:54:04 -08:00
pal.h [IA64] pal cache flush patch 2006-01-16 15:44:53 -08:00
param.h
parport.h
patch.h
pci.h
percpu.h
perfmon.h
perfmon_default_smpl.h
pgalloc.h
pgtable.h [PATCH] hugepage: Move hugetlb_free_pgd_range() prototype to hugetlb.h 2006-03-22 07:54:04 -08:00
poll.h
posix_types.h
processor.h Pull sn2-mmio-writes into release branch 2006-03-21 08:21:26 -08:00
ptrace.h [PATCH] ia64: task_pt_regs() 2006-01-12 09:08:58 -08:00
ptrace_offsets.h
resource.h
rse.h
rwsem.h
sal.h [IA64] avoid broken SAL_CACHE_FLUSH implementations 2006-02-02 13:25:54 -08:00
scatterlist.h
sections.h
segment.h
semaphore.h [IA64] Fix bug in ia64 specific down() function 2006-01-17 14:04:00 -08:00
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h [IA64] Delete MCA/INIT sigdelayed code 2006-01-26 13:23:27 -08:00
smp.h
socket.h
sockios.h
sparsemem.h
spinlock.h [PATCH] remove gcc-2 checks 2006-01-08 20:14:02 -08:00
spinlock_types.h
stat.h
statfs.h
string.h
suspend.h
system.h Pull sn2-mmio-writes into release branch 2006-03-21 08:21:26 -08:00
termbits.h
termios.h
thread_info.h Pull sn2-mmio-writes into release branch 2006-03-21 08:21:26 -08:00
timex.h [IA64] ia64: simplify and fix udelay() 2006-02-15 13:37:04 -08:00
tlb.h
tlbflush.h
topology.h [PATCH] Export cpu topology in sysfs 2006-02-03 08:32:09 -08:00
types.h
uaccess.h
ucontext.h
unaligned.h
uncached.h
unistd.h [IA64] unshare system call registration for ia64 2006-02-08 15:43:38 -08:00
unwind.h
user.h
ustack.h
vga.h
xor.h