Date: Thu, 21 Mar 2019 20:07:50 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r345384 - in head/sys/cddl/dev/dtrace: amd64 i386 Message-ID: <201903212007.x2LK7orn074363@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Thu Mar 21 20:07:50 2019 New Revision: 345384 URL: https://svnweb.freebsd.org/changeset/base/345384 Log: Use an explicit comparison with VM_GUEST_NO. Reported by: jhb MFC with: r345359 Sponsored by: The FreeBSD Foundation Modified: head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Modified: head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c ============================================================================== --- head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c Thu Mar 21 19:56:33 2019 (r345383) +++ head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c Thu Mar 21 20:07:50 2019 (r345384) @@ -319,7 +319,7 @@ dtrace_gethrtime_init(void *arg) int i; #endif - if (vm_guest) + if (vm_guest != VM_GUEST_NO) return; /* The current CPU is the reference one. */ Modified: head/sys/cddl/dev/dtrace/i386/dtrace_subr.c ============================================================================== --- head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Thu Mar 21 19:56:33 2019 (r345383) +++ head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Thu Mar 21 20:07:50 2019 (r345384) @@ -321,7 +321,7 @@ dtrace_gethrtime_init(void *arg) int i; #endif - if (vm_guest) + if (vm_guest != VM_GUEST_NO) return; /* The current CPU is the reference one. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903212007.x2LK7orn074363>