Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch remove local version of mstohz() now that <sys/para...



details:   https://anonhg.NetBSD.org/src/rev/050434f70612
branches:  trunk
changeset: 454823:050434f70612
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 28 15:11:53 2019 +0000

description:
remove local version of mstohz() now that <sys/param.h> provides it.

diffstat:

 sys/arch/amd64/include/param.h   |  4 +---
 sys/arch/sparc64/include/param.h |  7 +------
 2 files changed, 2 insertions(+), 9 deletions(-)

diffs (39 lines):

diff -r 3130d97bc6a3 -r 050434f70612 sys/arch/amd64/include/param.h
--- a/sys/arch/amd64/include/param.h    Sat Sep 28 15:11:19 2019 +0000
+++ b/sys/arch/amd64/include/param.h    Sat Sep 28 15:11:53 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.31 2019/08/20 12:33:04 riastradh Exp $     */
+/*     $NetBSD: param.h,v 1.32 2019/09/28 15:11:53 christos Exp $      */
 
 #ifdef __x86_64__
 
@@ -126,8 +126,6 @@
 #define btop(x)                                x86_btop(x)
 #define ptob(x)                                x86_ptob(x)
 
-#define mstohz(ms) ((ms + 0UL) * hz / 1000)
-
 #else  /*      __x86_64__      */
 
 #include <i386/param.h>
diff -r 3130d97bc6a3 -r 050434f70612 sys/arch/sparc64/include/param.h
--- a/sys/arch/sparc64/include/param.h  Sat Sep 28 15:11:19 2019 +0000
+++ b/sys/arch/sparc64/include/param.h  Sat Sep 28 15:11:53 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.60 2019/05/15 16:59:10 christos Exp $ */
+/*     $NetBSD: param.h,v 1.61 2019/09/28 15:11:53 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -229,11 +229,6 @@
 #define        DELAY(n)        delay(n)
 #endif /* __HIDE_DELAY */
 
-#ifdef __arch64__
-/* If we're using a 64-bit kernel use 64-bit math */
-#define mstohz(ms) ((ms + 0UL) * hz / 1000)
-#endif
-
 /* Keep this a const so compiler optimization is done */
 extern const int cputyp;
 



Home | Main Index | Thread Index | Old Index