Skip to content

Commit c3441ed

Browse files
committed
ARC: [SMP] General Fixes
-Pass the expected arg to non-boot park'ing routine (It worked so far because existing SMP backends don't use the arg) -CONFIG_DEBUG_PREEMPT warning
1 parent 6041003 commit c3441ed

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎arch/arc/kernel/head.S‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
.globl stext
2525
stext:
2626
;-------------------------------------------------------------------
27-
; Don't clobber r0-r4 yet. It might have bootloader provided info
27+
; Don't clobber r0-r2 yet. It might have bootloader provided info
2828
;-------------------------------------------------------------------
2929

3030
sr @_int_vec_base_lds, [AUX_INTR_VEC_BASE]
3131

3232
#ifdef CONFIG_SMP
33-
; Only Boot (Master) proceeds. Others wait in platform dependent way
33+
; Ensure Boot (Master) proceeds. Others wait in platform dependent way
3434
; IDENTITY Reg [ 3 2 1 0 ]
3535
; (cpu-id) ^^^ => Zero for UP ARC700
3636
; => #Core-ID if SMP (Master 0)
@@ -39,7 +39,8 @@ stext:
3939
; need to make sure only boot cpu takes this path.
4040
GET_CPU_ID r5
4141
cmp r5, 0
42-
jnz arc_platform_smp_wait_to_boot
42+
mov.ne r0, r5
43+
jne arc_platform_smp_wait_to_boot
4344
#endif
4445
; Clear BSS before updating any globals
4546
; XXX: use ZOL here

‎arch/arc/mm/cache_arc700.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@
100100
#define DC_CTRL_INV_MODE_FLUSH 0x40
101101
#define DC_CTRL_FLUSH_STATUS 0x100
102102

103-
char *arc_cache_mumbojumbo(int cpu_id, char *buf, int len)
103+
char *arc_cache_mumbojumbo(int c, char *buf, int len)
104104
{
105105
int n = 0;
106-
unsigned int c = smp_processor_id();
107106

108107
#define PR_CACHE(p, enb, str) \
109108
{ \

0 commit comments

Comments
 (0)