wbsd(4): timeout_add(9) -> timeout_add_msec(9)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

wbsd(4): timeout_add(9) -> timeout_add_msec(9)

Scott Cheloha
hz/4 -> 250ms.

ok?

Index: w83l518d_sdmmc.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/w83l518d_sdmmc.c,v
retrieving revision 1.4
diff -u -p -r1.4 w83l518d_sdmmc.c
--- w83l518d_sdmmc.c 5 May 2016 11:01:08 -0000 1.4
+++ w83l518d_sdmmc.c 23 Dec 2019 19:25:56 -0000
@@ -578,7 +578,7 @@ wb_sdmmc_intr(struct wb_softc *wb)
     "\5CRC\6FIFO\7CARD\010PENDING");
 
  if (val & WB_INT_CARD)
- timeout_add(&wb->wb_sdmmc_to, hz / 4);
+ timeout_add_msec(&wb->wb_sdmmc_to, 250);
 
  return 1;
 }

Reply | Threaded
Open this post in threaded view
|

Re: wbsd(4): timeout_add(9) -> timeout_add_msec(9)

Scott Cheloha
On Mon, Dec 23, 2019 at 01:26:34PM -0600, Scott Cheloha wrote:
> hz/4 -> 250ms.
>
> ok?

1mo bump.

> Index: w83l518d_sdmmc.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/w83l518d_sdmmc.c,v
> retrieving revision 1.4
> diff -u -p -r1.4 w83l518d_sdmmc.c
> --- w83l518d_sdmmc.c 5 May 2016 11:01:08 -0000 1.4
> +++ w83l518d_sdmmc.c 23 Dec 2019 19:25:56 -0000
> @@ -578,7 +578,7 @@ wb_sdmmc_intr(struct wb_softc *wb)
>      "\5CRC\6FIFO\7CARD\010PENDING");
>  
>   if (val & WB_INT_CARD)
> - timeout_add(&wb->wb_sdmmc_to, hz / 4);
> + timeout_add_msec(&wb->wb_sdmmc_to, 250);
>  
>   return 1;
>  }