9822f525efd03be1cd9038b085baf4983e5aa753
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-5.4 / 701-net-0061-sdk_fman-disable-timer-code-in-arm-code.patch
1 From 796f8a61e866183425a54fd8b45d5ccaebadad78 Mon Sep 17 00:00:00 2001
2 From: Madalin Bucur <madalin.bucur@nxp.com>
3 Date: Wed, 18 Apr 2018 23:02:36 +0300
4 Subject: [PATCH] sdk_fman: disable timer code in arm code
5
6 The (unused) timer code is no longer compatible with the newer
7 kernel API. Disabling the incompatible code in the arm64 code.
8
9 Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
10 ---
11 drivers/net/ethernet/freescale/sdk_fman/src/xx/xx_arm_linux.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14 --- a/drivers/net/ethernet/freescale/sdk_fman/src/xx/xx_arm_linux.c
15 +++ b/drivers/net/ethernet/freescale/sdk_fman/src/xx/xx_arm_linux.c
16 @@ -607,7 +607,7 @@ uint32_t XX_CurrentTime(void)
17 return (jiffies*1000)/HZ;
18 }
19
20 -
21 +#if 0
22 t_Handle XX_CreateTimer(void)
23 {
24 struct timer_list *p_Timer = (struct timer_list *)XX_Malloc(sizeof(struct timer_list));
25 @@ -684,6 +684,7 @@ int XX_TimerIsActive(t_Handle h_Timer)
26 {
27 return timer_pending((struct timer_list *)h_Timer);
28 }
29 +#endif
30
31 uint32_t XX_Sleep(uint32_t msecs)
32 {