p9: cleanupPcie: Run procedure on all CPUs

Procedure should be run on all of the master and
slave CPUs.

Change-Id: I323519b059cfbe14ccd6145e22b1bdae4fd3d476
Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
diff --git a/procedures/p9/cleanup_pcie.cpp b/procedures/p9/cleanup_pcie.cpp
index cb58f22..179d70c 100644
--- a/procedures/p9/cleanup_pcie.cpp
+++ b/procedures/p9/cleanup_pcie.cpp
@@ -37,12 +37,14 @@
 void cleanupPcie()
 {
     Targeting targets;
-    const auto& master = *(targets.begin());
 
     log<level::INFO>("Running P9 procedure cleanupPcie");
 
-    // Disable the PCIE drivers and receiver
-    writeReg(master, P9_ROOT_CTRL1_CLEAR, 0x00001C00);
+    // Disable the PCIE drivers and receiver on all CPUs
+    for (const auto& target : targets)
+    {
+        writeReg(target, P9_ROOT_CTRL1_CLEAR, 0x00001C00);
+    }
 }
 
 REGISTER_PROCEDURE("cleanupPcie", cleanupPcie);