Skip to contentSkip to conversation

arcc/kernel/process: Few mundane typo fixes

PATCH In review Bhaskar Chowdhury 3 participants 4 messages Mar 22, 2021 – Apr 7, 2021 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arcc/kernel/process: Few mundane typo fixes

s/defintion/definition/
s/succeded/succeeded/
s/commiting/committing/
s/interrutps/interrupts/

---

arch/arc/kernel/process.c +4 -4
index d838d0d57696..3793876f42d9 100644
@@ -50,14 +50,14 @@ SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
 	int ret;
 
 	/*
-	 * This is only for old cores lacking LLOCK/SCOND, which by defintion
+	 * This is only for old cores lacking LLOCK/SCOND, which by definition
 	 * can't possibly be SMP. Thus doesn't need to be SMP safe.
 	 * And this also helps reduce the overhead for serializing in
 	 * the UP case
 	 */
 	WARN_ON_ONCE(IS_ENABLED(CONFIG_SMP));
 
-	/* Z indicates to userspace if operation succeded */
+	/* Z indicates to userspace if operation succeeded */
 	regs->status32 &= ~STATUS_Z_MASK;
 
 	ret = access_ok(uaddr, sizeof(*uaddr));
@@ -107,7 +107,7 @@ SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
 
 void arch_cpu_idle(void)
 {
-	/* Re-enable interrupts <= default irq priority before commiting SLEEP */
+	/* Re-enable interrupts <= default irq priority before committing SLEEP */
 	const unsigned int arg = 0x10 | ARCV2_IRQ_DEF_PRIO;
 
 	__asm__ __volatile__(
@@ -120,7 +120,7 @@ void arch_cpu_idle(void)
 
 void arch_cpu_idle(void)
 {
-	/* sleep, but enable both set E1/E2 (levels of interrutps) before committing */
+	/* sleep, but enable both set E1/E2 (levels of interrupts) before committing */
 	__asm__ __volatile__("sleep 0x3	\n");
 }
 

--
2.31.0

_______________________________________________
linux-snps-arc mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

#2 lore raw
Quoted 6 lines · Christian Brauner
Quoted 5 lines · Bhaskar Chowdhury

s/defintion/definition/
s/succeded/succeeded/
s/commiting/committing/
s/interrutps/interrupts/

Quoted 7 lines
Quoted 2 lines

---

Since you aim to be mirroring the path arc/kernel/process there's a typo in the patch subject :)
s/arcc/arc/

Thanks, will be careful in the future.

Quoted 3 lines

otherwise

_______________________________________________
linux-snps-arc mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

#3 lore raw
In reply to Bhaskar Chowdhury
Quoted 6 lines · Bhaskar Chowdhury

s/defintion/definition/
s/succeded/succeeded/
s/commiting/committing/
s/interrutps/interrupts/

I've squashed all your 3 patches into one (no reason to break them out) and queued for 5.13.

Thx,
-Vineet

Quoted 43 lines

---

arch/arc/kernel/process.c +4 -5
index d838d0d57696..3793876f42d9 100644
@@ -50,14 +50,14 @@ SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
  	int ret;
 
  	/*
-	 * This is only for old cores lacking LLOCK/SCOND, which by defintion
+	 * This is only for old cores lacking LLOCK/SCOND, which by definition
  	 * can't possibly be SMP. Thus doesn't need to be SMP safe.
  	 * And this also helps reduce the overhead for serializing in
  	 * the UP case
  	 */
  	WARN_ON_ONCE(IS_ENABLED(CONFIG_SMP));
 
-	/* Z indicates to userspace if operation succeded */
+	/* Z indicates to userspace if operation succeeded */
  	regs->status32 &= ~STATUS_Z_MASK;
 
  	ret = access_ok(uaddr, sizeof(*uaddr));
@@ -107,7 +107,7 @@ SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
 
  void arch_cpu_idle(void)
  {
-	/* Re-enable interrupts <= default irq priority before commiting SLEEP */
+	/* Re-enable interrupts <= default irq priority before committing SLEEP */
  	const unsigned int arg = 0x10 | ARCV2_IRQ_DEF_PRIO;
 
  	__asm__ __volatile__(
@@ -120,7 +120,7 @@ void arch_cpu_idle(void)
 
  void arch_cpu_idle(void)
  {
-	/* sleep, but enable both set E1/E2 (levels of interrutps) before committing */
+	/* sleep, but enable both set E1/E2 (levels of interrupts) before committing */
  	__asm__ __volatile__("sleep 0x3	\n");
  }
 
--

2.31.0