Skip to content

Commit fff5b49

Browse files
committed
arch: arc: replace "master"/"slave" terminology with inclusive language
As per Zephyr guidelines regarding the use of inclusive language, apply the following replacements: - s/master/primary/g - s/slave/secondary/g Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 8b91904 commit fff5b49

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

arch/arc/core/reset.S

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,20 @@ hw_pf_setup_done:
163163

164164
#if defined(CONFIG_SMP) || CONFIG_MP_MAX_NUM_CPUS > 1
165165
_get_cpu_id r0
166-
breq r0, 0, _master_core_startup
166+
breq r0, 0, _primary_core_startup
167167

168168
/*
169-
* Non-masters wait for master core (core 0) to boot enough
169+
* Non-primary cores wait for primary core (core 0) to boot enough
170170
*/
171-
_slave_core_wait:
171+
_secondary_core_wait:
172172
#if CONFIG_MP_MAX_NUM_CPUS == 1
173173
kflag 1
174174
#endif
175175
ld r1, [arc_cpu_wake_flag]
176-
brne r0, r1, _slave_core_wait
176+
brne r0, r1, _secondary_core_wait
177177

178178
LDR sp, arc_cpu_sp
179-
/* signal master core that slave core runs */
179+
/* signal primary core that secondary core runs */
180180
st 0, [arc_cpu_wake_flag]
181181

182182
#if defined(CONFIG_ARC_FIRQ_STACK)
@@ -186,7 +186,7 @@ _slave_core_wait:
186186
#endif
187187
j arch_secondary_cpu_init
188188

189-
_master_core_startup:
189+
_primary_core_startup:
190190
#endif
191191

192192
#ifdef CONFIG_INIT_STACKS

arch/arc/core/smp.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ volatile struct {
2525
} arc_cpu_init[CONFIG_MP_MAX_NUM_CPUS];
2626

2727
/*
28-
* arc_cpu_wake_flag is used to sync up master core and slave cores
29-
* Slave core will spin for arc_cpu_wake_flag until master core sets
30-
* it to the core id of slave core. Then, slave core clears it to notify
31-
* master core that it's waken
28+
* arc_cpu_wake_flag is used to sync up primary core and secondary cores
29+
* Secondary core will spin for arc_cpu_wake_flag until primary core sets
30+
* it to the core id of secondary core. Then, secondary core clears it to notify
31+
* primary core that it's waken
3232
*
3333
*/
3434
volatile uint32_t arc_cpu_wake_flag;
@@ -50,13 +50,13 @@ void arch_cpu_start(int cpu_num, k_thread_stack_t *stack, int sz,
5050

5151
/* set the initial sp of target sp through arc_cpu_sp
5252
* arc_cpu_wake_flag will protect arc_cpu_sp that
53-
* only one slave cpu can read it per time
53+
* only one secondary cpu can read it per time
5454
*/
5555
arc_cpu_sp = K_KERNEL_STACK_BUFFER(stack) + sz;
5656

5757
arc_cpu_wake_flag = cpu_num;
5858

59-
/* wait slave cpu to start */
59+
/* wait secondary cpu to start */
6060
while (arc_cpu_wake_flag != 0U) {
6161
;
6262
}
@@ -90,7 +90,7 @@ static void arc_connect_debug_mask_update(int cpu_num)
9090

9191
void arc_core_private_intc_init(void);
9292

93-
/* the C entry of slave cores */
93+
/* the C entry of secondary cores */
9494
void arch_secondary_cpu_init(int cpu_num)
9595
{
9696
arch_cpustart_t fn;
@@ -162,7 +162,7 @@ int arch_smp_init(void)
162162
{
163163
struct arc_connect_bcr bcr;
164164

165-
/* necessary master core init */
165+
/* necessary primary core init */
166166
_curr_cpu[0] = &(_kernel.cpus[0]);
167167

168168
bcr.val = z_arc_v2_aux_reg_read(_ARC_V2_CONNECT_BCR);
@@ -173,7 +173,7 @@ int arch_smp_init(void)
173173
}
174174

175175
if (bcr.ipi) {
176-
/* register ici interrupt, just need master core to register once */
176+
/* register ici interrupt, just need primary core to register once */
177177
z_arc_connect_ici_clear();
178178
IRQ_CONNECT(DT_IRQN(DT_NODELABEL(ici)),
179179
DT_IRQ(DT_NODELABEL(ici), priority),

0 commit comments

Comments
 (0)