]> Pileus Git - ~andy/linux/commitdiff
cris: Use generic init_task
authorThomas Gleixner <tglx@linutronix.de>
Thu, 3 May 2012 09:02:52 +0000 (09:02 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 5 May 2012 11:00:22 +0000 (13:00 +0200)
Same code. Use the generic version.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Link: http://lkml.kernel.org/r/20120503085034.475552133@linutronix.de
arch/cris/Kconfig
arch/cris/kernel/process.c

index 2995035812eccaf8b80f3d889470626dee7f36e2..15e30a771a7278683ecf504896f6a05c636696d2 100644 (file)
@@ -50,6 +50,7 @@ config CRIS
        select GENERIC_IRQ_SHOW
        select GENERIC_IOMAP
        select GENERIC_SMP_IDLE_THREAD if ETRAX_ARCH_V32
+       select HAVE_GENERIC_INIT_TASK
 
 config HZ
        int
index 891dad85e8bd4fae33233f5abb71c453b3ade5c2..66fd01728790b3b63c5e6057e5a522ca71094f85 100644 (file)
 
 //#define DEBUG
 
-/*
- * Initial task structure. Make this a per-architecture thing,
- * because different architectures tend to have different
- * alignment requirements and potentially different initial
- * setup.
- */
-
-static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
-static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
-/*
- * Initial thread structure.
- *
- * We need to make sure that this is 8192-byte aligned due to the
- * way process stacks are handled. This is done by having a special
- * "init_task" linker map entry..
- */
-union thread_union init_thread_union __init_task_data =
-       { INIT_THREAD_INFO(init_task) };
-
-/*
- * Initial task structure.
- *
- * All other task structs will be allocated on slabs in fork.c
- */
-struct task_struct init_task = INIT_TASK(init_task);
-
-EXPORT_SYMBOL(init_task);
-
 /*
  * The hlt_counter, disable_hlt and enable_hlt is just here as a hook if
  * there would ever be a halt sequence (for power save when idle) with