diff options
| author | briggs <briggs@NetBSD.org> | 2007-05-24 15:57:58 +0000 |
|---|---|---|
| committer | briggs <briggs@NetBSD.org> | 2007-05-24 15:57:58 +0000 |
| commit | 9e95a6e47730b99b0979d1590c8bc95ccf08e08f (patch) | |
| tree | 513436d02a3c0fca06001b6e68977a6d16cea86c /sys/dev | |
| parent | 1f40a9d3d409a0d980fe9cfd80f4034f722adab8 (diff) | |
The number of max_lat units in 1 sec is 4000000 instead of 40000000 (an
extra 0 snuck into the code).
Found when looking at this with dyoung.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/pciconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/pciconf.c b/sys/dev/pci/pciconf.c index de8f36c98f2..32f245a1dc0 100644 --- a/sys/dev/pci/pciconf.c +++ b/sys/dev/pci/pciconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: pciconf.c,v 1.29 2006/02/27 16:11:58 gdamore Exp $ */ +/* $NetBSD: pciconf.c,v 1.30 2007/05/24 15:57:58 briggs Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -65,7 +65,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.29 2006/02/27 16:11:58 gdamore Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.30 2007/05/24 15:57:58 briggs Exp $"); #include "opt_pci.h" @@ -972,7 +972,7 @@ configure_bus(pciconf_bus_t *pb) } bus_mhz = pb->freq_66 ? 66 : 33; max_ltim = pb->max_mingnt * bus_mhz / 4; /* cvt to cycle count */ - band = 40000000; /* 0.25us cycles/sec */ + band = 4000000; /* 0.25us cycles/sec */ if (band < pb->bandwidth_used) { printf("PCI bus %d: Warning: Total bandwidth exceeded!?\n", pb->busno); |
