diff options
author | Changbin Du <changbin.du@gmail.com> | 2021-08-14 04:48:31 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2021-08-24 22:28:23 +0300 |
commit | fe450eeb4e6f1c19d088c99d2206ecabb8d0892b (patch) | |
tree | 44149f1686658a16877d4191b9f43954ee35b229 /Documentation/kernel-hacking/locking.rst | |
parent | f08fe9d29366c0204c3d571fa0088b1f0efd1a17 (diff) | |
download | linux-fe450eeb4e6f1c19d088c99d2206ecabb8d0892b.tar.xz |
Documentation: in_irq() cleanup
Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Link: https://lore.kernel.org/r/20210814014831.53083-1-changbin.du@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/kernel-hacking/locking.rst')
-rw-r--r-- | Documentation/kernel-hacking/locking.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/kernel-hacking/locking.rst b/Documentation/kernel-hacking/locking.rst index ed1284c6f078..94232ed1d592 100644 --- a/Documentation/kernel-hacking/locking.rst +++ b/Documentation/kernel-hacking/locking.rst @@ -1406,7 +1406,7 @@ bh half will be running at any time. Hardware Interrupt / Hardware IRQ - Hardware interrupt request. in_irq() returns true in a + Hardware interrupt request. in_hardirq() returns true in a hardware interrupt handler. Interrupt Context @@ -1418,7 +1418,7 @@ SMP (``CONFIG_SMP=y``). Software Interrupt / softirq - Software interrupt handler. in_irq() returns false; + Software interrupt handler. in_hardirq() returns false; in_softirq() returns true. Tasklets and softirqs both fall into the category of 'software interrupts'. |