powertop.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [Powertop] [PATCH 2/4 v1] lib: have check_pci_access() scan the entire bus
@ 2017-09-08 22:36 Joe Konno
  0 siblings, 0 replies; only message in thread
From: Joe Konno @ 2017-09-08 22:36 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

From: Joe Konno <joe.konno(a)intel.com>

Signed-off-by: Joe Konno <joe.konno(a)intel.com>
---
 src/lib.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib.cpp b/src/lib.cpp
index 2b95e64f427b..d2a9de71e7aa 100644
--- a/src/lib.cpp
+++ b/src/lib.cpp
@@ -301,6 +301,7 @@ static void check_pci_access(void)
 	if (!pci_access) {
 		pci_access = pci_alloc();
 		pci_init(pci_access);
+		pci_scan_bus(pci_access);
 	}
 }
 
-- 
2.13.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-08 22:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08 22:36 [Powertop] [PATCH 2/4 v1] lib: have check_pci_access() scan the entire bus Joe Konno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).