Source-Changes-HG archive

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

[src/trunk]: src/sys/modules/dtrace/lockstat Instead of hard-coding who has c...



details:   https://anonhg.NetBSD.org/src/rev/dc7b8170c403
branches:  trunk
changeset: 813308:dc7b8170c403
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 24 01:01:43 2016 +0000

description:
Instead of hard-coding who has cpu counters why don't you look for them?

diffstat:

 sys/modules/dtrace/lockstat/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 32c7e27220d3 -r dc7b8170c403 sys/modules/dtrace/lockstat/Makefile
--- a/sys/modules/dtrace/lockstat/Makefile      Sun Jan 24 01:01:11 2016 +0000
+++ b/sys/modules/dtrace/lockstat/Makefile      Sun Jan 24 01:01:43 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2015/09/10 19:57:48 riz Exp $
+#      $NetBSD: Makefile,v 1.3 2016/01/24 01:01:43 christos Exp $
 
 .include "../../Makefile.inc"
 
@@ -10,7 +10,7 @@
 CPPFLAGS+=     -I${NETBSDSRCDIR}/external/cddl/osnet/sys
 CPPFLAGS+=     -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
 CPPFLAGS+=     -DKDTRACE_HOOKS
-.if (!empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*))
+.if exists(${DESTDIR}/usr/include/machine/cpu_counter.h)
 CPPFLAGS+=     -D__HAVE_CPU_COUNTER
 .endif
 



Home | Main Index | Thread Index | Old Index