summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhimanyu <abhimanyu@freescale.com>2015-10-21 04:40:08 (GMT)
committerPriyanka Jain <Priyanka.Jain@freescale.com>2015-10-21 05:01:50 (GMT)
commit7faf4988d89e78671a7dfe61f29f081e332584fa (patch)
treec590a548125eb1deec890493c1803298d34786df
parent502650e09dd95d79ddbe24419409f7ef93818157 (diff)
downloadlinux-fsl-qoriq-7faf4988d89e78671a7dfe61f29f081e332584fa.tar.xz
net, gianfar, rt: Update TX_TIMEOUT to 5HZ
Increased TX_TIMEOUT to 5HZ to improve performance in case of Real-Time. Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com> Signed-off-by: Abhimanyu <abhimanyu@freescale.com>
-rw-r--r--drivers/net/ethernet/freescale/gianfar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c
index 406d0f0..d8c92a2 100644
--- a/drivers/net/ethernet/freescale/gianfar.c
+++ b/drivers/net/ethernet/freescale/gianfar.c
@@ -127,7 +127,11 @@ EXPORT_SYMBOL(devfp_tx_hook);
#endif
#endif
+#ifdef CONFIG_PREEMPT_RT_FULL
+#define TX_TIMEOUT (5*HZ)
+#else
#define TX_TIMEOUT (1*HZ)
+#endif
const char gfar_driver_version[] = "1.3";