From 6bea8b28a71449cb5f7daceee79ab9276864e420 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Fri, 17 Oct 2003 19:24:32 +1000 Subject: [PATCH] ppc64: Use kmalloc for kernel stacks, like x86 (makes usage easy to track via slabinfo) --- include/asm-ppc64/thread_info.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/asm-ppc64/thread_info.h b/include/asm-ppc64/thread_info.h index 345008a8a14b1..b7280fbb2dae7 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) -- 2.53.0