Skip to content

Commit

Permalink
docs: locking: Add 'need' to hardirq section
Browse files Browse the repository at this point in the history
Add the missing word to make this sentence read properly.

Signed-off-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
bebarino authored and Jonathan Corbet committed Mar 20, 2020
1 parent 769f90f commit 6adb775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/kernel-hacking/locking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ by a hardware interrupt on another CPU. This is where
interrupts on that cpu, then grab the lock.
:c:func:`spin_unlock_irq()` does the reverse.

The irq handler does not to use :c:func:`spin_lock_irq()`, because
The irq handler does not need to use :c:func:`spin_lock_irq()`, because
the softirq cannot run while the irq handler is running: it can use
:c:func:`spin_lock()`, which is slightly faster. The only exception
would be if a different hardware irq handler uses the same lock:
Expand Down

0 comments on commit 6adb775

Please sign in to comment.