[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend: pci: fix a typo in do_Dstate_transition



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1248855570 -3600
# Node ID 035857a72413b44073f2461ec51e8c6a40b65283
# Parent  92eec6f672fe34eb68c9b72992d32a9e9076225d
xend: pci: fix a typo in do_Dstate_transition

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
---
 tools/python/xen/util/pci.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 92eec6f672fe -r 035857a72413 tools/python/xen/util/pci.py
--- a/tools/python/xen/util/pci.py      Wed Jul 29 09:19:13 2009 +0100
+++ b/tools/python/xen/util/pci.py      Wed Jul 29 09:19:30 2009 +0100
@@ -730,7 +730,7 @@ class PciDevice:
         # devices transitioning from D3hot to D0 because of
         # PowerState commands do not perform an internal reset.
         pm_ctl = self.pci_conf_read32(pos + PCI_PM_CTRL)
-        if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == 1:
+        if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == PCI_PM_CTRL_NO_SOFT_RESET:
             return False
 
         (pci_list, cfg_list) = save_pci_conf_space([self.name])

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.