Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern DTrace: Add __predict_false() to the DTrace hooks p...
details: https://anonhg.NetBSD.org/src/rev/457bc9dd4142
branches: trunk
changeset: 752256:457bc9dd4142
user: darran <darran%NetBSD.org@localhost>
date: Sun Feb 21 07:39:18 2010 +0000
description:
DTrace: Add __predict_false() to the DTrace hooks per rmind's suggestion.
diffstat:
sys/kern/kern_synch.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r e763071e586e -r 457bc9dd4142 sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c Sun Feb 21 07:28:51 2010 +0000
+++ b/sys/kern/kern_synch.c Sun Feb 21 07:39:18 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_synch.c,v 1.277 2010/02/21 07:01:57 darran Exp $ */
+/* $NetBSD: kern_synch.c,v 1.278 2010/02/21 07:39:18 darran Exp $ */
/*-
* Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.277 2010/02/21 07:01:57 darran Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.278 2010/02/21 07:39:18 darran Exp $");
#include "opt_kstack.h"
#include "opt_perfctrs.h"
@@ -775,7 +775,7 @@
* other than INACTIVE (0), then it should have set the
* function to call.
*/
- if (dtrace_vtime_active) {
+ if (__predict_false(dtrace_vtime_active)) {
(*dtrace_vtime_switch_func)(newl);
}
#endif
@@ -927,7 +927,7 @@
* other than INACTIVE (0), then it should have set the
* function to call.
*/
- if (dtrace_vtime_active) {
+ if (__predict_false(dtrace_vtime_active)) {
(*dtrace_vtime_switch_func)(newl);
}
#endif
Home |
Main Index |
Thread Index |
Old Index