sh: Kill off sh64's unused alloc/free_task_struct() definitions.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 10 Dec 2008 08:16:09 +0000 (17:16 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:44:03 +0000 (18:44 +0900)
These were left over from some time ago, sh64 never got around to
defining __HAVE_ARCH_TASK_STRUCT_ALLOCATOR during the conversion, and it
has no need to. Kill these off and use the generic versions instead.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/process_64.c

index 597cf02db3fc1b757fd3eb49e73ffc6508c30251..e9bf2548d6d447c1aecaf3f560d4971689126cfd 100644 (file)
@@ -305,18 +305,6 @@ void show_regs(struct pt_regs * regs)
        }
 }
 
-struct task_struct * alloc_task_struct(void)
-{
-       /* Get task descriptor pages */
-       return (struct task_struct *)
-               __get_free_pages(GFP_KERNEL, get_order(THREAD_SIZE));
-}
-
-void free_task_struct(struct task_struct *p)
-{
-       free_pages((unsigned long) p, get_order(THREAD_SIZE));
-}
-
 /*
  * Create a kernel thread
  */