Skip to content

Commit 4d1f3bb

Browse files
committed
sh: Kill off sh64's unused alloc/free_task_struct() definitions.
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>
1 parent 4eec883 commit 4d1f3bb

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎arch/sh/kernel/process_64.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,6 @@ void show_regs(struct pt_regs * regs)
305305
}
306306
}
307307

308-
struct task_struct * alloc_task_struct(void)
309-
{
310-
/* Get task descriptor pages */
311-
return (struct task_struct *)
312-
__get_free_pages(GFP_KERNEL, get_order(THREAD_SIZE));
313-
}
314-
315-
void free_task_struct(struct task_struct *p)
316-
{
317-
free_pages((unsigned long) p, get_order(THREAD_SIZE));
318-
}
319-
320308
/*
321309
* Create a kernel thread
322310
*/

0 commit comments

Comments
 (0)