Skip to content

Commit f79f7a2

Browse files
unixbhaskarvineetgarc
authored andcommitted
arc: Fix typos/spellos
s/commiting/committing/ s/defintion/definition/ s/gaurantees/guarantees/ s/interrpted/interrupted/ s/interrutps/interrupts/ s/succeded/succeeded/ s/unconditonally/unconditionally/ Reviewed-by: Christian Brauner <[email protected]> Acked-by: Randy Dunlap <[email protected]> Signed-off-by: Bhaskar Chowdhury <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
1 parent 6efb943 commit f79f7a2

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

arch/arc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif
3131

3232

3333
ifdef CONFIG_ARC_CURR_IN_REG
34-
# For a global register defintion, make sure it gets passed to every file
34+
# For a global register definition, make sure it gets passed to every file
3535
# We had a customer reported bug where some code built in kernel was NOT using
3636
# any kernel headers, and missing the r25 global register
3737
# Can't do unconditionally because of recursive include issues

arch/arc/include/asm/cmpxchg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static inline unsigned long __xchg(unsigned long val, volatile void *ptr,
116116
*
117117
* Technically the lock is also needed for UP (boils down to irq save/restore)
118118
* but we can cheat a bit since cmpxchg() atomic_ops_lock() would cause irqs to
119-
* be disabled thus can't possibly be interrpted/preempted/clobbered by xchg()
119+
* be disabled thus can't possibly be interrupted/preempted/clobbered by xchg()
120120
* Other way around, xchg is one instruction anyways, so can't be interrupted
121121
* as such
122122
*/
@@ -143,7 +143,7 @@ static inline unsigned long __xchg(unsigned long val, volatile void *ptr,
143143
/*
144144
* "atomic" variant of xchg()
145145
* REQ: It needs to follow the same serialization rules as other atomic_xxx()
146-
* Since xchg() doesn't always do that, it would seem that following defintion
146+
* Since xchg() doesn't always do that, it would seem that following definition
147147
* is incorrect. But here's the rationale:
148148
* SMP : Even xchg() takes the atomic_ops_lock, so OK.
149149
* LLSC: atomic_ops_lock are not relevant at all (even if SMP, since LLSC

arch/arc/kernel/process.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
5050
int ret;
5151

5252
/*
53-
* This is only for old cores lacking LLOCK/SCOND, which by defintion
53+
* This is only for old cores lacking LLOCK/SCOND, which by definition
5454
* can't possibly be SMP. Thus doesn't need to be SMP safe.
5555
* And this also helps reduce the overhead for serializing in
5656
* the UP case
5757
*/
5858
WARN_ON_ONCE(IS_ENABLED(CONFIG_SMP));
5959

60-
/* Z indicates to userspace if operation succeded */
60+
/* Z indicates to userspace if operation succeeded */
6161
regs->status32 &= ~STATUS_Z_MASK;
6262

6363
ret = access_ok(uaddr, sizeof(*uaddr));
@@ -107,7 +107,7 @@ SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
107107

108108
void arch_cpu_idle(void)
109109
{
110-
/* Re-enable interrupts <= default irq priority before commiting SLEEP */
110+
/* Re-enable interrupts <= default irq priority before committing SLEEP */
111111
const unsigned int arg = 0x10 | ARCV2_IRQ_DEF_PRIO;
112112

113113
__asm__ __volatile__(
@@ -120,7 +120,7 @@ void arch_cpu_idle(void)
120120

121121
void arch_cpu_idle(void)
122122
{
123-
/* sleep, but enable both set E1/E2 (levels of interrutps) before committing */
123+
/* sleep, but enable both set E1/E2 (levels of interrupts) before committing */
124124
__asm__ __volatile__("sleep 0x3 \n");
125125
}
126126

arch/arc/kernel/signal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
259259
regs->r2 = (unsigned long)&sf->uc;
260260

261261
/*
262-
* small optim to avoid unconditonally calling do_sigaltstack
262+
* small optim to avoid unconditionally calling do_sigaltstack
263263
* in sigreturn path, now that we only have rt_sigreturn
264264
*/
265265
magic = MAGIC_SIGALTSTK;
@@ -391,7 +391,7 @@ void do_signal(struct pt_regs *regs)
391391
void do_notify_resume(struct pt_regs *regs)
392392
{
393393
/*
394-
* ASM glue gaurantees that this is only called when returning to
394+
* ASM glue guarantees that this is only called when returning to
395395
* user mode
396396
*/
397397
if (test_thread_flag(TIF_NOTIFY_RESUME))

0 commit comments

Comments
 (0)