linux/Documentation/kernel-hacking
Alexander Sverdlin 379af13b31 docs: locking: Discourage from calling disable_irq() in atomic
Correct the example in the documentation so that disable_irq() is not being
called in atomic context.

disable_irq() calls sleeping synchronize_irq(), it's not allowed to call
them in atomic context.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Manfred Spraul <manfred@colorfullife.com>
Cc: linux-doc@vger.kernel.org
Link: https://lore.kernel.org/lkml/87k02wbs2n.ffs@tglx/
Link: https://lore.kernel.org/r/20221212163715.830315-1-alexander.sverdlin@siemens.com
2023-01-11 19:45:26 +01:00
..
hacking.rst Documentation: Fix spelling mistake in hacking.rst 2022-10-24 11:27:51 -06:00
index.rst doc: add some chapter labels 2018-06-26 09:08:06 -06:00
locking.rst docs: locking: Discourage from calling disable_irq() in atomic 2023-01-11 19:45:26 +01:00