Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Signed-off-by: Changbin Du <changbin.du@gmail.com>
Showing the changes to Documentation/kernel-hacking (2 of 5 files). Show all
Unified · Split
| @@ -76,8 +76,8 @@ handler is never re-entered: if the same interrupt arrives, it is queued · 75 unmodified lines | ||
| 76 | 76 | fast: frequently it simply acknowledges the interrupt, marks a 'software |
| 77 | 77 | interrupt' for execution and exits. |
| 78 | 78 | |
| 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. | |
| 81 | 81 | |
| 82 | 82 | .. warning:: |
| 83 | 83 | |
| @@ -1406,7 +1406,7 @@ bh · 1405 unmodified lines | ||
| 1406 | 1406 | half will be running at any time. |
| 1407 | 1407 | |
| 1408 | 1408 | Hardware Interrupt / Hardware IRQ |
| 1409 | − Hardware interrupt request. in_irq() returns true in a | |
| 1409 | + Hardware interrupt request. in_hardirq() returns true in a | |
| 1410 | 1410 | hardware interrupt handler. |
| 1411 | 1411 | |
| 1412 | 1412 | Interrupt Context |
| @@ -1418,7 +1418,7 @@ SMP · 5 unmodified lines | ||
| 1418 | 1418 | (``CONFIG_SMP=y``). |
| 1419 | 1419 | |
| 1420 | 1420 | Software Interrupt / softirq |
| 1421 | − Software interrupt handler. in_irq() returns false; | |
| 1421 | + Software interrupt handler. in_hardirq() returns false; | |
| 1422 | 1422 | in_softirq() returns true. Tasklets and softirqs both |
| 1423 | 1423 | fall into the category of 'software interrupts'. |
| 1424 | 1424 | |