clean up duplicated alloc/free_thread_info
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 25 Jul 2008 08:45:40 +0000 (01:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:28 +0000 (10:53 -0700)
commitb69c49b78457f681ecfb3147bd968434ee6559c1
tree9557c950c21cf4336ccc403136ea11384150af31
parent62ec30d45ecbb85b5991474c8f04192697687495
clean up duplicated alloc/free_thread_info

We duplicate alloc/free_thread_info defines on many platforms (the
majority uses __get_free_pages/free_pages).  This patch defines common
defines and removes these duplicated defines.
__HAVE_ARCH_THREAD_INFO_ALLOCATOR is introduced for platforms that do
something different.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
23 files changed:
include/asm-alpha/thread_info.h
include/asm-arm/thread_info.h
include/asm-avr32/thread_info.h
include/asm-blackfin/thread_info.h
include/asm-cris/thread_info.h
include/asm-frv/thread_info.h
include/asm-h8300/thread_info.h
include/asm-ia64/thread_info.h
include/asm-m32r/thread_info.h
include/asm-m68k/thread_info.h
include/asm-m68knommu/thread_info.h
include/asm-mips/thread_info.h
include/asm-mn10300/thread_info.h
include/asm-parisc/thread_info.h
include/asm-powerpc/thread_info.h
include/asm-s390/thread_info.h
include/asm-sh/thread_info.h
include/asm-sparc/thread_info_32.h
include/asm-sparc/thread_info_64.h
include/asm-um/thread_info.h
include/asm-x86/thread_info.h
include/asm-xtensa/thread_info.h
kernel/fork.c