Skip to content

Commit

Permalink
m68k: move definition of THREAD_SIZE into thread_info_mm.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer authored and Geert Uytterhoeven committed Oct 22, 2010
1 parent 03e4012 commit a8a6aa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/m68k/include/asm/page_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@

#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>
Expand Down
5 changes: 5 additions & 0 deletions arch/m68k/include/asm/thread_info_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8a6aa0

Please sign in to comment.