aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/thread_info.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2005-09-19 23:47:41 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-21 05:21:07 -0400
commit637a6ff6ce525d8495df944550efea0f023dd521 (patch)
treef4d31da12a348ecf9136cef8f5986172d6af6003 /include/asm-ppc64/thread_info.h
parentd0035c62d9145a2ce3057c8182a7ff0b4921a41c (diff)
[PATCH] ppc64: Updated Olof misc updates 3/3
Replace some of the hard-coded constants with PAGE_SIZE/SHIFT/ORDER where appropriate. Likewise, in a couple of places it doesn't make sense to base some allocations on page size when all that's required is a constant 4K, etc. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/thread_info.h')
-rw-r--r--include/asm-ppc64/thread_info.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-ppc64/thread_info.h b/include/asm-ppc64/thread_info.h
index 0494df6fca74..71244d8a427d 100644
--- a/include/asm-ppc64/thread_info.h
+++ b/include/asm-ppc64/thread_info.h
@@ -54,9 +54,9 @@ struct thread_info {
54 54
55/* thread information allocation */ 55/* thread information allocation */
56 56
57#define THREAD_ORDER 2 57#define THREAD_SHIFT 14
58#define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) 58#define THREAD_ORDER (THREAD_SHIFT - PAGE_SHIFT)
59#define THREAD_SHIFT (PAGE_SHIFT + THREAD_ORDER) 59#define THREAD_SIZE (1 << THREAD_SHIFT)
60#ifdef CONFIG_DEBUG_STACK_USAGE 60#ifdef CONFIG_DEBUG_STACK_USAGE
61#define alloc_thread_info(tsk) \ 61#define alloc_thread_info(tsk) \
62 ({ \ 62 ({ \