avr32: Use generic init_task
Same code. Use the generic version. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Haavard Skinnemoen <hskinnemoen@gmail.com> Link: http://lkml.kernel.org/r/20120503085034.281527118@linutronix.de
This commit is contained in:
parent
5290dc2929
commit
29b2501bd8
|
@ -12,6 +12,7 @@ config AVR32
|
||||||
select HARDIRQS_SW_RESEND
|
select HARDIRQS_SW_RESEND
|
||||||
select GENERIC_IRQ_SHOW
|
select GENERIC_IRQ_SHOW
|
||||||
select ARCH_HAVE_NMI_SAFE_CMPXCHG
|
select ARCH_HAVE_NMI_SAFE_CMPXCHG
|
||||||
|
select HAVE_GENERIC_INIT_TASK
|
||||||
help
|
help
|
||||||
AVR32 is a high-performance 32-bit RISC microprocessor core,
|
AVR32 is a high-performance 32-bit RISC microprocessor core,
|
||||||
designed for cost-sensitive embedded applications, with particular
|
designed for cost-sensitive embedded applications, with particular
|
||||||
|
|
|
@ -8,7 +8,7 @@ obj-$(CONFIG_SUBARCH_AVR32B) += entry-avr32b.o
|
||||||
obj-y += syscall_table.o syscall-stubs.o irq.o
|
obj-y += syscall_table.o syscall-stubs.o irq.o
|
||||||
obj-y += setup.o traps.o ocd.o ptrace.o
|
obj-y += setup.o traps.o ocd.o ptrace.o
|
||||||
obj-y += signal.o sys_avr32.o process.o time.o
|
obj-y += signal.o sys_avr32.o process.o time.o
|
||||||
obj-y += init_task.o switch_to.o cpu.o
|
obj-y += switch_to.o cpu.o
|
||||||
obj-$(CONFIG_MODULES) += module.o avr32_ksyms.o
|
obj-$(CONFIG_MODULES) += module.o avr32_ksyms.o
|
||||||
obj-$(CONFIG_KPROBES) += kprobes.o
|
obj-$(CONFIG_KPROBES) += kprobes.o
|
||||||
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (C) 2004-2006 Atmel Corporation
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License version 2 as
|
|
||||||
* published by the Free Software Foundation.
|
|
||||||
*/
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/fs.h>
|
|
||||||
#include <linux/sched.h>
|
|
||||||
#include <linux/init_task.h>
|
|
||||||
#include <linux/mqueue.h>
|
|
||||||
|
|
||||||
#include <asm/pgtable.h>
|
|
||||||
|
|
||||||
static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
|
|
||||||
static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
|
|
||||||
/*
|
|
||||||
* Initial thread structure. Must be aligned on an 8192-byte boundary.
|
|
||||||
*/
|
|
||||||
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);
|
|
Loading…
Reference in a new issue