Updated the Readme
[dante-enablement/k2g-dante-enablement.git] / 0003-soc-ti-knav_qmss-k2g-make-rx-tx-irq-no-thread-on-rt.patch
1 From f30d98c0b90bce3bac00600117240cf9259f6c09 Mon Sep 17 00:00:00 2001
2 From: Grygorii Strashko <grygorii.strashko@ti.com>
3 Date: Tue, 10 Nov 2020 16:47:22 +0200
4 Subject: [PATCH] soc: ti: knav_qmss: k2g: make rx/tx irq no thread on rt
6 Networking RX/TX IRQs are simple and used to schedule NAPI, so making them
7 NOTHREAD allows to avoid additional scheduling
9 IRQ
10  |- threaded irq <--avoid
11     |-schedule NAPI (ksoftirqd)
13 Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
14 ---
15  drivers/soc/ti/knav_qmss_queue.c | 2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
19 index ef36acc0e708..2c4d67a8baf3 100644
20 --- a/drivers/soc/ti/knav_qmss_queue.c
21 +++ b/drivers/soc/ti/knav_qmss_queue.c
22 @@ -122,7 +122,7 @@ static int knav_queue_setup_irq(struct knav_range_info *range,
23  
24         if (range->flags & RANGE_HAS_IRQ) {
25                 irq = range->irqs[queue].irq;
26 -               ret = request_irq(irq, knav_queue_int_handler, 0,
27 +               ret = request_irq(irq, knav_queue_int_handler, IRQF_NO_THREAD,
28                                         inst->irq_name, inst);
29                 if (ret)
30                         return ret;
31 -- 
32 2.17.1