Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Signed-off-by: Changbin Du <changbin.du@gmail.com>
Unified · Split
| @@ -76,8 +76,8 @@ handler is never re-entered: if the same interrupt arrives, it is queued · 75 unmodified lines | |||
| 76 | fast: frequently it simply acknowledges the interrupt, marks a 'software | 76 | fast: frequently it simply acknowledges the interrupt, marks a 'software |
| 77 | interrupt' for execution and exits. | 77 | interrupt' for execution and exits. |
| 78 | 78 | ||
| 79 | You can tell you are in a hardware interrupt, because | 79 | You can tell you are in a hardware interrupt, because in_hardirq() returns |
| 80 | :c:func:`in_irq()` returns true. | 80 | true. |
| 81 | 81 | ||
| 82 | .. warning:: | 82 | .. warning:: |
| 83 | 83 | ||
| @@ -1406,7 +1406,7 @@ bh · 1405 unmodified lines | |||
| 1406 | half will be running at any time. | 1406 | half will be running at any time. |
| 1407 | 1407 | ||
| 1408 | Hardware Interrupt / Hardware IRQ | 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 | hardware interrupt handler. | 1410 | hardware interrupt handler. |
| 1411 | 1411 | ||
| 1412 | Interrupt Context | 1412 | Interrupt Context |
| @@ -1418,7 +1418,7 @@ SMP · 5 unmodified lines | |||
| 1418 | (``CONFIG_SMP=y``). | 1418 | (``CONFIG_SMP=y``). |
| 1419 | 1419 | ||
| 1420 | Software Interrupt / softirq | 1420 | Software Interrupt / softirq |
| 1421 | Software interrupt handler. in_irq() returns false; | 1421 | Software interrupt handler. in_hardirq() returns false; |
| 1422 | in_softirq() returns true. Tasklets and softirqs both | 1422 | in_softirq() returns true. Tasklets and softirqs both |
| 1423 | fall into the category of 'software interrupts'. | 1423 | fall into the category of 'software interrupts'. |
| 1424 | 1424 | ||
| @@ -90,7 +90,7 @@ i gestori d'interruzioni devono essere veloci: spesso si limitano · 89 unmodified lines | |||
| 90 | esclusivamente a notificare la presa in carico dell'interruzione, | 90 | esclusivamente a notificare la presa in carico dell'interruzione, |
| 91 | programmare una 'interruzione software' per l'esecuzione e quindi terminare. | 91 | programmare una 'interruzione software' per l'esecuzione e quindi terminare. |
| 92 | 92 | ||
| 93 | Potete dire d'essere in una interruzione hardware perché :c:func:`in_irq()` | 93 | Potete dire d'essere in una interruzione hardware perché in_hardirq() |
| 94 | ritorna vero. | 94 | ritorna vero. |
| 95 | 95 | ||
| 96 | .. warning:: | 96 | .. warning:: |
| @@ -1459,11 +1459,11 @@ contesto utente · 1458 unmodified lines | |||
| 1459 | che hardware. | 1459 | che hardware. |
| 1460 | 1460 | ||
| 1461 | interruzione hardware | 1461 | interruzione hardware |
| 1462 | Richiesta di interruzione hardware. in_irq() ritorna vero in un | 1462 | Richiesta di interruzione hardware. in_hardirq() ritorna vero in un |
| 1463 | gestore d'interruzioni hardware. | 1463 | gestore d'interruzioni hardware. |
| 1464 | 1464 | ||
| 1465 | interruzione software / softirq | 1465 | interruzione software / softirq |
| 1466 | Gestore di interruzioni software: in_irq() ritorna falso; | 1466 | Gestore di interruzioni software: in_hardirq() ritorna falso; |
| 1467 | in_softirq() ritorna vero. I tasklet e le softirq sono entrambi | 1467 | in_softirq() ritorna vero. I tasklet e le softirq sono entrambi |
| 1468 | considerati 'interruzioni software'. | 1468 | considerati 'interruzioni software'. |
| 1469 | 1469 | ||
| @@ -68,7 +68,7 @@ · 67 unmodified lines | |||
| 68 | 它将被排队(或丢弃)。因为它会关闭中断,所以处理程序必须很快:通常它只是 | 68 | 它将被排队(或丢弃)。因为它会关闭中断,所以处理程序必须很快:通常它只是 |
| 69 | 确认中断,标记一个“软件中断”以执行并退出。 | 69 | 确认中断,标记一个“软件中断”以执行并退出。 |
| 70 | 70 | ||
| 71 | 您可以通过 :c:func:`in_irq()` 返回真来判断您处于硬件中断状态。 | 71 | 您可以通过 in_hardirq() 返回真来判断您处于硬件中断状态。 |
| 72 | 72 | ||
| 73 | .. warning:: | 73 | .. warning:: |
| 74 | 74 | ||