primary-proc: move function to common utils

This is a useful function which can be utilized in upcoming work so move
to the common utilities

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I87873b4dbedbeef0a18474eba39798fde298ea36
diff --git a/procedures/phal/common_utils.hpp b/procedures/phal/common_utils.hpp
index f9703bc..623d071 100644
--- a/procedures/phal/common_utils.hpp
+++ b/procedures/phal/common_utils.hpp
@@ -2,6 +2,11 @@
 
 #include <libipl.H>
 
+extern "C"
+{
+#include <libpdbg.h>
+}
+
 namespace openpower
 {
 namespace phal
@@ -17,5 +22,14 @@
  */
 void phal_init(enum ipl_mode mode = IPL_AUTOBOOT);
 
+/**
+ *  @brief  Check if primary processor or not
+ *
+ *  * @param[in] procTarget - Target to check if primary or not
+ *
+ *  @return True/False
+ */
+bool isPrimaryProc(struct pdbg_target* procTarget);
+
 } // namespace phal
 } // namespace openpower