Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci use RND_ENABLED() to avoid unneeded function cal...
details: https://anonhg.NetBSD.org/src/rev/f9b3de92eee0
branches: trunk
changeset: 535530:f9b3de92eee0
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Aug 21 03:59:31 2002 +0000
description:
use RND_ENABLED() to avoid unneeded function call. should help if_gsip case.
diffstat:
sys/dev/pci/if_sip.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r e628ebf06ebd -r f9b3de92eee0 sys/dev/pci/if_sip.c
--- a/sys/dev/pci/if_sip.c Wed Aug 21 03:30:54 2002 +0000
+++ b/sys/dev/pci/if_sip.c Wed Aug 21 03:59:31 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sip.c,v 1.65 2002/08/20 00:35:46 itojun Exp $ */
+/* $NetBSD: if_sip.c,v 1.66 2002/08/21 03:59:31 itojun Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.65 2002/08/20 00:35:46 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.66 2002/08/21 03:59:31 itojun Exp $");
#include "bpfilter.h"
#include "rnd.h"
@@ -1499,7 +1499,8 @@
break;
#if NRND > 0
- rnd_add_uint32(&sc->rnd_source, isr);
+ if (RND_ENABLED(&sc->rnd_source))
+ rnd_add_uint32(&sc->rnd_source, isr);
#endif
handled = 1;
Home |
Main Index |
Thread Index |
Old Index