Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298848
b: refs/heads/master
c: 8c92ba6
h: refs/heads/master
v: v3
  • Loading branch information
Chris Metcalf committed Apr 2, 2012
1 parent f615e23 commit bf3d50e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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: bfffe79bc29a9c4c817d5f51590961220e26db1a
refs/heads/master: 8c92ba6c327ee5089dec1e92eaa82927bee63d6d
2 changes: 2 additions & 0 deletions trunk/arch/tile/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ STD_ENTRY(cpu_idle_on_new_stack)
/* Loop forever on a nap during SMP boot. */
STD_ENTRY(smp_nap)
nap
nop /* avoid provoking the icache prefetch with a jump */
j smp_nap /* we are not architecturally guaranteed not to exit nap */
jrp lr /* clue in the backtracer */
STD_ENDPROC(smp_nap)
Expand All @@ -105,5 +106,6 @@ STD_ENTRY(_cpu_idle)
.global _cpu_idle_nap
_cpu_idle_nap:
nap
nop /* avoid provoking the icache prefetch with a jump */
jrp lr
STD_ENDPROC(_cpu_idle)
2 changes: 1 addition & 1 deletion trunk/arch/tile/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static void smp_stop_cpu_interrupt(void)
set_cpu_online(smp_processor_id(), 0);
arch_local_irq_disable_all();
for (;;)
asm("nap");
asm("nap; nop");
}

/* This function calls the 'stop' function on all other CPUs in the system. */
Expand Down

0 comments on commit bf3d50e

Please sign in to comment.