linux-kernel-test/include
KAMEZAWA Hiroyuki a117e66ed4 [PATCH] unify pfn_to_page: generic functions
There are 3 memory models, FLATMEM, DISCONTIGMEM, SPARSEMEM.
Each arch has its own page_to_pfn(), pfn_to_page() for each models.
But most of them can use the same arithmetic.

This patch adds asm-generic/memory_model.h, which includes generic
page_to_pfn(), pfn_to_page() definitions for each memory model.

When CONFIG_OUT_OF_LINE_PFN_TO_PAGE=y, out-of-line functions are
used instead of macro. This is enabled by some archs and  reduces
text size.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Ian Molton <spyro@f2s.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Hirokazu Takata <takata.hirokazu@renesas.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
Cc: Richard Curnow <rc@rc0.org.uk>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Miles Bader <uclinux-v850@lsi.nec.co.jp>
Cc: Chris Zankel <chris@zankel.net>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-27 08:44:44 -08:00
..
acpi [PATCH] s/;;/;/g 2006-03-24 07:33:24 -08:00
asm-alpha [PATCH] bitops: alpha: use generic bitops 2006-03-26 08:57:11 -08:00
asm-arm [PATCH] bitops: arm: use generic bitops 2006-03-26 08:57:12 -08:00
asm-arm26 [PATCH] bitops: arm26: use generic bitops 2006-03-26 08:57:12 -08:00
asm-cris [PATCH] bitops: cris: use generic bitops 2006-03-26 08:57:12 -08:00
asm-frv [PATCH] bitops: frv: use generic bitops 2006-03-26 08:57:12 -08:00
asm-generic [PATCH] unify pfn_to_page: generic functions 2006-03-27 08:44:44 -08:00
asm-h8300 [PATCH] bitops: h8300: use generic bitops 2006-03-26 08:57:12 -08:00
asm-i386 [PATCH] sched: new sched domain for representing multi-core 2006-03-27 08:44:43 -08:00
asm-ia64 [PATCH] bitops: ia64: use generic bitops 2006-03-26 08:57:12 -08:00
asm-m32r [PATCH] bitops: m32r: use generic bitops 2006-03-26 08:57:12 -08:00
asm-m68k [PATCH] m68k: fix undefined reference to generic_find_next_zero_le_bit 2006-03-26 08:57:13 -08:00
asm-m68knommu [PATCH] bitops: m68knommu: use generic bitops 2006-03-26 08:57:13 -08:00
asm-mips [PATCH] bitops: mips: use generic bitops 2006-03-26 08:57:13 -08:00
asm-parisc [PATCH] bitops: parisc: use generic bitops 2006-03-26 08:57:14 -08:00
asm-powerpc [PATCH] bitops: powerpc: use generic bitops 2006-03-26 08:57:14 -08:00
asm-ppc powerpc: Implement accurate task and CPU time accounting 2006-02-24 14:05:56 +11:00
asm-s390 [PATCH] bitops: s390: use generic bitops 2006-03-26 08:57:14 -08:00
asm-sh [PATCH] bitops: sh: make thread_info.flags an unsigned long 2006-03-26 08:57:15 -08:00
asm-sh64 [PATCH] bitops: sh64: use generic bitops 2006-03-26 08:57:14 -08:00
asm-sparc [PATCH] bitops: sparc: use generic bitops 2006-03-26 08:57:14 -08:00
asm-sparc64 [PATCH] unify pfn_to_page: generic functions 2006-03-27 08:44:44 -08:00
asm-um [PATCH] uml: fix build warnings in __get_user 2006-03-27 08:44:37 -08:00
asm-v850 [PATCH] bitops: v850: use generic bitops 2006-03-26 08:57:14 -08:00
asm-x86_64 [PATCH] sched: new sched domain for representing multi-core 2006-03-27 08:44:43 -08:00
asm-xtensa [PATCH] bitops: xtensa: use generic bitops 2006-03-26 08:57:15 -08:00
keys
linux [PATCH] unify pfn_to_page: generic functions 2006-03-27 08:44:44 -08:00
math-emu
media V4L/DVB (3599): Implement new routing commands for wm8775 and cs53l32a. 2006-03-24 16:27:00 -03:00
mtd
net [IPV4]: Aggregate route entries with different TOS values 2006-03-25 01:38:55 -08:00
pcmcia [PATCH] pcmcia: Add macro to match PCMCIA cards by numeric ID and first vendor string 2006-03-01 11:11:26 +01:00
rdma IB/umad: Add support for large RMPP transfers 2006-03-20 10:08:23 -08:00
rxrpc
scsi [PATCH] Make libata not powerdown drivers on PM_EVENT_FREEZE. 2006-03-24 09:51:36 -05:00
sound [PATCH] sound: remove PC98-specific OPL3_HW_OPL3_PC98 2006-03-24 07:33:26 -08:00
video [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00