From beba1e0a846b4f34453064c158bf1249c234721f Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 7 Nov 2019 10:33:09 -0800 Subject: [PATCH] kernel: restrict irq_offload() to test cases This API was only created to facilitate testing of kernel objects in IRQ context, never for actual applications. Signed-off-by: Andrew Boie --- arch/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/Kconfig b/arch/Kconfig index 6cf29205dfc..13afa36c800 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -316,9 +316,11 @@ config GEN_IRQ_START_VECTOR config IRQ_OFFLOAD bool "Enable IRQ offload" + depends on TEST help Enable irq_offload() API which allows functions to be synchronously - run in interrupt context. Mainly useful for test cases. + run in interrupt context. Only useful for test cases that need + to validate the correctness of kernel objects in IRQ context. endmenu # Interrupt configuration