m68k: move definition of THREAD_SIZE into thread_info_mm.h
authorGreg Ungerer <gerg@snapgear.com>
Tue, 7 Sep 2010 05:49:00 +0000 (15:49 +1000)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 22 Oct 2010 07:43:23 +0000 (09:43 +0200)
Move the definition of THREAD_SIZE from page_mm.h to thread_info_mm.h
This logically associates it with the other thread definitions, and will
make it easier to merge the MMU and non-MMU versions of page.h and
thread_info.h.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/page_mm.h
arch/m68k/include/asm/thread_info_mm.h

index d009f3ea39abdaf133e06b122a86e4053b44636f..eeb6764c1053b5835a0779af7aadd1f7a46d11a0 100644 (file)
 
 #include <asm/setup.h>
 
-#if PAGE_SHIFT < 13
-#define THREAD_SIZE (8192)
-#else
-#define THREAD_SIZE PAGE_SIZE
-#endif
-
 #ifndef __ASSEMBLY__
 
 #include <linux/compiler.h>
index 3bf31dc51b12965e646e3cc31f4ea9a324e6ec7d..d08046cf8a4d2c147e21aade5e382cfe75859eba 100644 (file)
@@ -34,6 +34,11 @@ struct thread_info {
 }
 
 /* THREAD_SIZE should be 8k, so handle differently for 4k and 8k machines */
+#if PAGE_SHIFT < 13
+#define THREAD_SIZE (8192)
+#else
+#define THREAD_SIZE PAGE_SIZE
+#endif
 #define THREAD_SIZE_ORDER (13 - PAGE_SHIFT)
 
 #define init_thread_info       (init_task.thread.info)