Commit a5b51d79 authored by Anil Keshavamurthy's avatar Anil Keshavamurthy Committed by Linus Torvalds

[PATCH] Online CPU with maxcpus option panics

I booted IA64 kernel with "maxcpus=" set to less than the total available
processors in the system.  Then I tried to online the CPU which was offline
due to "maxcpus=" restirction.  i.e when I tried to online the CPU which
never was online at boot crashed the system.
Signed-off-by: default avatarAnil Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ad3bb3fe
......@@ -356,7 +356,7 @@ start_secondary (void *unused)
return cpu_idle();
}
struct pt_regs * __init idle_regs(struct pt_regs *regs)
struct pt_regs * __devinit idle_regs(struct pt_regs *regs)
{
return NULL;
}
......
......@@ -1179,13 +1179,13 @@ static task_t *copy_process(unsigned long clone_flags,
goto fork_out;
}
struct pt_regs * __init __attribute__((weak)) idle_regs(struct pt_regs *regs)
struct pt_regs * __devinit __attribute__((weak)) idle_regs(struct pt_regs *regs)
{
memset(regs, 0, sizeof(struct pt_regs));
return regs;
}
task_t * __init fork_idle(int cpu)
task_t * __devinit fork_idle(int cpu)
{
task_t *task;
struct pt_regs regs;
......
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