Skip to content

Commit 6adb775

Browse files
bebarinoJonathan Corbet
authored andcommitted
docs: locking: Add 'need' to hardirq section
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]>
1 parent 769f90f commit 6adb775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/kernel-hacking/locking.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ by a hardware interrupt on another CPU. This is where
263263
interrupts on that cpu, then grab the lock.
264264
:c:func:`spin_unlock_irq()` does the reverse.
265265

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

0 commit comments

Comments
 (0)