]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
alpha: Use generic init_task
authorThomas Gleixner <tglx@linutronix.de>
Thu, 3 May 2012 09:02:50 +0000 (09:02 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 5 May 2012 11:00:21 +0000 (13:00 +0200)
Identical code. Use the generic version.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Matt Turner <mattst88@gmail.com>
Link: http://lkml.kernel.org/r/20120503085034.162634519@linutronix.de
arch/alpha/Kconfig
arch/alpha/kernel/Makefile
arch/alpha/kernel/init_task.c [deleted file]

index 991b8bbff4ffc21f93009a4e627f3d9e6c418bd5..74d000480b69a5d1ee525cd34b68f31bf1d6e1bf 100644 (file)
@@ -16,6 +16,7 @@ config ALPHA
        select ARCH_WANT_OPTIONAL_GPIOLIB
        select ARCH_HAVE_NMI_SAFE_CMPXCHG
        select GENERIC_SMP_IDLE_THREAD
+       select HAVE_GENERIC_INIT_TASK
        help
          The Alpha is a 64-bit general-purpose processor designed and
          marketed by the Digital Equipment Corporation of blessed memory,
index 7a6d908bb865c2e83a5cc51dcd975830f8cdfc4a..84ec46b38f7dc1c39043f8671bc60b3db1a62b9d 100644 (file)
@@ -6,7 +6,7 @@ extra-y         := head.o vmlinux.lds
 asflags-y      := $(KBUILD_CFLAGS)
 ccflags-y      := -Wno-sign-compare
 
-obj-y    := entry.o traps.o process.o init_task.o osf_sys.o irq.o \
+obj-y    := entry.o traps.o process.o osf_sys.o irq.o \
            irq_alpha.o signal.o setup.o ptrace.o time.o \
            alpha_ksyms.o systbls.o err_common.o io.o
 
diff --git a/arch/alpha/kernel/init_task.c b/arch/alpha/kernel/init_task.c
deleted file mode 100644 (file)
index 6f80ca4..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <linux/mm.h>
-#include <linux/module.h>
-#include <linux/sched.h>
-#include <linux/init.h>
-#include <linux/init_task.h>
-#include <linux/fs.h>
-#include <linux/mqueue.h>
-#include <asm/uaccess.h>
-
-
-static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
-static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
-struct task_struct init_task = INIT_TASK(init_task);
-EXPORT_SYMBOL(init_task);
-
-union thread_union init_thread_union __init_task_data =
-       { INIT_THREAD_INFO(init_task) };