Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264655
b: refs/heads/master
c: eb04745
h: refs/heads/master
i:
  264653: d8db800
  264651: 5be3844
  264647: e0ed4ea
  264639: 6e1a253
v: v3
  • Loading branch information
Thomas Gleinxer authored and Russell King committed Oct 23, 2011
1 parent 8e0f928 commit 79c62d7
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 6c5482d53f195d3ca61c9ec1be25b0f4a92575fe
refs/heads/master: eb0474544bc16a9dab53b26abd846e86ba814eb1
23 changes: 13 additions & 10 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,17 +301,7 @@ asmlinkage void __cpuinit secondary_start_kernel(void)
*/
platform_secondary_init(cpu);

/*
* Enable local interrupts.
*/
notify_cpu_starting(cpu);
local_irq_enable();
local_fiq_enable();

/*
* Setup the percpu timer for this CPU.
*/
percpu_timer_setup();

calibrate_delay();

Expand All @@ -323,9 +313,22 @@ asmlinkage void __cpuinit secondary_start_kernel(void)
* before we continue.
*/
set_cpu_online(cpu, true);

/*
* Setup the percpu timer for this CPU.
*/
percpu_timer_setup();

while (!cpu_active(cpu))
cpu_relax();

/*
* cpu_active bit is set, so it's safe to enalbe interrupts
* now.
*/
local_irq_enable();
local_fiq_enable();

/*
* OK, it's off to the idle thread for us
*/
Expand Down

0 comments on commit 79c62d7

Please sign in to comment.