[PATCH] Add the IBM POWER7+ processor support.

The POWER7+ event files are the same as for POWER7.  Just need to
return success if the processor type is POWER7 or POWER7+.

Signed-off-by: Carl Love <c...@us.ibm.com>
---
 lib/pfmlib_power7.c     | 2 +-
 lib/pfmlib_power_priv.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/pfmlib_power7.c b/lib/pfmlib_power7.c
index 9443878..ceab517 100644
--- a/lib/pfmlib_power7.c
+++ b/lib/pfmlib_power7.c
@@ -29,7 +29,7 @@
 static int
 pfm_power7_detect(void* this)
 {
-       if (__is_processor(PV_POWER7))
+       if (__is_processor(PV_POWER7) || __is_processor(PV_POWER7p))
                return PFM_SUCCESS;
        return PFM_ERR_NOTSUPP;
 }
diff --git a/lib/pfmlib_power_priv.h b/lib/pfmlib_power_priv.h
index 66db113..2f66c22 100644
--- a/lib/pfmlib_power_priv.h
+++ b/lib/pfmlib_power_priv.h
@@ -90,6 +90,7 @@ typedef struct {
 #define PV_970FX       0x003C
 #define PV_POWER6      0x003E
 #define PV_POWER7      0x003F
+#define PV_POWER7p     0x004a
 #define PV_970MP       0x0044
 #define PV_970GX       0x0045
 
-- 
1.7.12.rc1.22.gbfbf4d4




------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to