Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88801
b: refs/heads/master
c: f3ce446
h: refs/heads/master
i:
  88799: f17637d
v: v3
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent 68d8d82 commit 2dc69d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f915d7f46b84192a19647c8e6b111a7e518875cb
refs/heads/master: f3ce4466abd6f5173db98b5cc2269c139cd1790a
13 changes: 3 additions & 10 deletions trunk/arch/x86/kernel/smpboot_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,11 +704,11 @@ static void __cpuinit do_warm_boot_cpu(struct work_struct *work)
complete(info->complete);
}

static int __cpuinit __smp_prepare_cpu(int cpu)
static void __cpuinit __smp_prepare_cpu(int cpu)
{
DECLARE_COMPLETION_ONSTACK(done);
struct warm_boot_cpu_info info;
int apicid, ret;
int apicid;

apicid = per_cpu(x86_cpu_to_apicid, cpu);

Expand All @@ -725,9 +725,6 @@ static int __cpuinit __smp_prepare_cpu(int cpu)
wait_for_completion(&done);

zap_low_mappings();
ret = 0;
exit:
return ret;
}
#endif

Expand Down Expand Up @@ -950,7 +947,6 @@ int __cpuinit native_cpu_up(unsigned int cpu)
{
int apicid = cpu_present_to_apicid(cpu);
unsigned long flags;
int ret = 0;

WARN_ON(irqs_disabled());

Expand All @@ -971,10 +967,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)
* when a cpu is taken offline from cpu_exit_clear().
*/
if (!cpu_isset(cpu, cpu_callin_map))
ret = __smp_prepare_cpu(cpu);

if (ret)
return -EIO;
__smp_prepare_cpu(cpu);
#endif

/* In case one didn't come up */
Expand Down

0 comments on commit 2dc69d0

Please sign in to comment.