drop unused BUMPTIME macro

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

drop unused BUMPTIME macro

Scott Cheloha
miod@ dropped the last usage of BUMPTIME circa 5.3.

ok?

--
Scott Cheloha

Index: sys/kern/kern_clock.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_clock.c,v
retrieving revision 1.94
diff -u -p -r1.94 kern_clock.c
--- sys/kern/kern_clock.c 14 May 2018 12:31:21 -0000 1.94
+++ sys/kern/kern_clock.c 4 Jun 2018 16:38:29 -0000
@@ -79,20 +79,6 @@
  * profhz/stathz for statistics.  (For profiling, every tick counts.)
  */
 
-/*
- * Bump a timeval by a small number of usec's.
- */
-#define BUMPTIME(t, usec) { \
- volatile struct timeval *tp = (t); \
- long us; \
- \
- tp->tv_usec = us = tp->tv_usec + (usec); \
- if (us >= 1000000) { \
- tp->tv_usec = us - 1000000; \
- tp->tv_sec++; \
- } \
-}
-
 int stathz;
 int schedhz;
 int profhz;

Reply | Threaded
Open this post in threaded view
|

Re: drop unused BUMPTIME macro

Mark Kettenis
> Date: Mon, 4 Jun 2018 12:20:29 -0500
> From: Scott Cheloha <[hidden email]>
>
> miod@ dropped the last usage of BUMPTIME circa 5.3.
>
> ok?

ok kettenis@

> Index: sys/kern/kern_clock.c
> ===================================================================
> RCS file: /cvs/src/sys/kern/kern_clock.c,v
> retrieving revision 1.94
> diff -u -p -r1.94 kern_clock.c
> --- sys/kern/kern_clock.c 14 May 2018 12:31:21 -0000 1.94
> +++ sys/kern/kern_clock.c 4 Jun 2018 16:38:29 -0000
> @@ -79,20 +79,6 @@
>   * profhz/stathz for statistics.  (For profiling, every tick counts.)
>   */
>  
> -/*
> - * Bump a timeval by a small number of usec's.
> - */
> -#define BUMPTIME(t, usec) { \
> - volatile struct timeval *tp = (t); \
> - long us; \
> - \
> - tp->tv_usec = us = tp->tv_usec + (usec); \
> - if (us >= 1000000) { \
> - tp->tv_usec = us - 1000000; \
> - tp->tv_sec++; \
> - } \
> -}
> -
>  int stathz;
>  int schedhz;
>  int profhz;
>
>