Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2003-10-17 19:24:32 +1000
committerAnton Blanchard <anton@samba.org>2003-10-17 19:24:32 +1000
commit6bea8b28a71449cb5f7daceee79ab9276864e420 (patch)
tree4ba9fe77cd40bfba73aa55be96e91ccb1a34e734
parente949f670abd6b1ef4ace740fac2e03975e68954d (diff)
ppc64: Use kmalloc for kernel stacks, like x86 (makes usage easy to track via slabinfo)
-rw-r--r--include/asm-ppc64/thread_info.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/asm-ppc64/thread_info.h b/include/asm-ppc64/thread_info.h
index 345008a8a14b..b7280fbb2dae 100644
--- a/include/asm-ppc64/thread_info.h
+++ b/include/asm-ppc64/thread_info.h
@@ -51,10 +51,8 @@ struct thread_info {
#define THREAD_ORDER 2
#define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER)
#define THREAD_SHIFT (PAGE_SHIFT + THREAD_ORDER)
-
-#define alloc_thread_info(tsk) ((struct thread_info *) \
- __get_free_pages(GFP_KERNEL, THREAD_ORDER))
-#define free_thread_info(ti) free_pages((unsigned long) (ti), THREAD_ORDER)
+#define alloc_thread_info(task) ((struct thread_info *)kmalloc(THREAD_SIZE, GFP_KERNEL))
+#define free_thread_info(ti) kfree(ti)
#define get_thread_info(ti) get_task_struct((ti)->task)
#define put_thread_info(ti) put_task_struct((ti)->task)