History

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>

Changbin Du committed 5 years ago

Commit fe450ee1 parent f08fe9d5 files · +8 −8Browse files

Showing the changes to Documentation/kernel-hacking (2 of 5 files). Show all

Unified · Split

2 files
  1. Documentation/kernel-hacking/hacking.rst +2 −2
  2. Documentation/kernel-hacking/locking.rst +2 −2
Documentation/kernel-hacking/hacking.rst+2−2
@@ -76,8 +76,8 @@ handler is never re-entered: if the same interrupt arrives, it is queued · 75 unmodified lines
7676 fast: frequently it simply acknowledges the interrupt, marks a 'software
7777 interrupt' for execution and exits.
7878
79−You can tell you are in a hardware interrupt, because
80−:c:func:`in_irq()` returns true.
79+You can tell you are in a hardware interrupt, because in_hardirq() returns
80+true.
8181
8282 .. warning::
8383
Documentation/kernel-hacking/locking.rst+2−2
@@ -1406,7 +1406,7 @@ bh · 1405 unmodified lines
14061406 half will be running at any time.
14071407
14081408 Hardware Interrupt / Hardware IRQ
1409− Hardware interrupt request. in_irq() returns true in a
1409+ Hardware interrupt request. in_hardirq() returns true in a
14101410 hardware interrupt handler.
14111411
14121412 Interrupt Context
@@ -1418,7 +1418,7 @@ SMP · 5 unmodified lines
14181418 (``CONFIG_SMP=y``).
14191419
14201420 Software Interrupt / softirq
1421− Software interrupt handler. in_irq() returns false;
1421+ Software interrupt handler. in_hardirq() returns false;
14221422 in_softirq() returns true. Tasklets and softirqs both
14231423 fall into the category of 'software interrupts'.
14241424

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t