svn commit: r219997 - stable/8/sys/sparc64/pci

Marius Strobl marius at FreeBSD.org
Fri Mar 25 13:08:19 UTC 2011


Author: marius
Date: Fri Mar 25 13:08:19 2011
New Revision: 219997
URL: http://svn.freebsd.org/changeset/base/219997

Log:
  MFC: r219780
  
  In case reading PCIR_MINGNT fails don't use it for calculating the
  latency. This is more or less a theoretical problem though as it
  typically indicates way bigger problems.

Modified:
  stable/8/sys/sparc64/pci/ofw_pcibus.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/sparc64/pci/ofw_pcibus.c
==============================================================================
--- stable/8/sys/sparc64/pci/ofw_pcibus.c	Fri Mar 25 13:03:13 2011	(r219996)
+++ stable/8/sys/sparc64/pci/ofw_pcibus.c	Fri Mar 25 13:08:19 2011	(r219997)
@@ -165,7 +165,7 @@ ofw_pcibus_setup_device(device_t bridge,
 		CS_WRITE(PCIR_SECLAT_1, reg, 1);
 	} else {
 		reg = CS_READ(PCIR_MINGNT, 1);
-		if (reg != 0) {
+		if ((int)reg > 0) {
 			switch (clock) {
 			case 33000000:
 				reg *= 8;


More information about the svn-src-stable-8 mailing list