frv: Use correct size for task_struct allocation
authorThomas Gleixner <tglx@linutronix.de>
Thu, 3 May 2012 09:02:47 +0000 (09:02 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 5 May 2012 11:00:21 +0000 (13:00 +0200)
commitcce4517f33384c3794c759e206cc8e1bb6df146b
treebc77454534553be9588281f8b8210b34697e3f69
parent43a18b1e588d1b6a993eedd44dd3154590d9bebd
frv: Use correct size for task_struct allocation

alloc_task_struct_node() allocates THREAD_SIZE and maintains some
weird refcount in the allocated memory. This never blew up as
task_struct size on 32bit machines was always less than THREAD_SIZE

Allocate just sizeof(struct task_struct) and get rid of the magic
refcounting.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David Howells <dhowells@redhat.com>
Link: http://lkml.kernel.org/r/20120503085033.898475542@linutronix.de
arch/frv/kernel/process.c