Skip to content

Commit b581adb

Browse files
committed
Merge pull request torvalds#60 from aejsmith/ci20-v3.18-smp-fixes
Fix SMP bootstrap code
2 parents d4da27a + d6132ab commit b581adb

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

arch/mips/jz4740/smp-entry.S

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ LEAF(jz4780_secondary_cpu_entry)
6666
la t0, jz4780_cpu_entry_gp
6767
lw gp, 0(t0)
6868

69-
/* off we go! */
70-
j smp_bootstrap
69+
/* jump to the kernel in kseg0 */
70+
la t0, smp_bootstrap
71+
jr t0
7172
nop
7273
END(jz4780_secondary_cpu_entry)

arch/mips/jz4740/smp.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
#include <linux/clk.h>
2424
#include <linux/clockchips.h>
25-
#include <linux/delay.h>
2625
#include <linux/interrupt.h>
2726
#include <linux/of.h>
2827
#include <linux/sched.h>
@@ -273,11 +272,3 @@ void jz4780_smp_init(void)
273272
{
274273
register_smp_ops(&jz4780_smp_ops);
275274
}
276-
277-
unsigned long calibrate_delay_is_known(void)
278-
{
279-
if (smp_processor_id() == 0)
280-
return 0;
281-
282-
return loops_per_jiffy;
283-
}

0 commit comments

Comments
 (0)