Commit 3b0132ce authored by Thomas Gleixner's avatar Thomas Gleixner

hexagon: Use generic idle thread allocation

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-and-tested-by: default avatarRichard Kuo <rkuo@codeaurora.org>
Link: http://lkml.kernel.org/r/20120420124557.581762105@linutronix.de
parent 360014a3
...@@ -27,6 +27,7 @@ config HEXAGON ...@@ -27,6 +27,7 @@ config HEXAGON
select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRACEHOOK
select NO_IOPORT select NO_IOPORT
select GENERIC_IOMAP select GENERIC_IOMAP
select GENERIC_SMP_IDLE_THREAD
# mostly generic routines, with some accelerated ones # mostly generic routines, with some accelerated ones
---help--- ---help---
Qualcomm Hexagon is a processor architecture designed for high Qualcomm Hexagon is a processor architecture designed for high
......
...@@ -196,18 +196,11 @@ void __cpuinit start_secondary(void) ...@@ -196,18 +196,11 @@ void __cpuinit start_secondary(void)
* maintains control until "cpu_online(cpu)" is set. * maintains control until "cpu_online(cpu)" is set.
*/ */
int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tidle) int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *idle)
{ {
struct task_struct *idle; struct thread_info *thread = (struct thread_info *)idle->stack;
struct thread_info *thread;
void *stack_start; void *stack_start;
/* Create new init task for the CPU */
idle = fork_idle(cpu);
if (IS_ERR(idle))
panic(KERN_ERR "fork_idle failed\n");
thread = (struct thread_info *)idle->stack;
thread->cpu = cpu; thread->cpu = cpu;
/* Boot to the head. */ /* Boot to the head. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment