]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: increase the perf HW events to 6
authorCatalin Udma <catalin.udma@freescale.com>
Wed, 5 Jun 2013 20:22:08 +0000 (15:22 -0500)
committerScott Wood <scottwood@freescale.com>
Wed, 7 Aug 2013 23:38:03 +0000 (18:38 -0500)
commited2699320f92d752f8b879975f35a52d4c0bb7af
tree96f0e95f0472e909dde39b3e1afe505a53398d2e
parentb131d31f8f50c58b567ac17d941f9cc0d8c44bbe
powerpc/perf: increase the perf HW events to 6

This change is required after the e6500 perf support has been added.
There are 6 counters in e6500 core instead of 4 in e500 core and
the MAX_HWEVENTS counter should be changed accordingly from 4 to 6.
Added also runtime check for counters overflow.

Signed-off-by: Catalin Udma <catalin.udma@freescale.com>
Signed-off-by: Lijun Pan <Lijun.Pan@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/include/asm/perf_event_fsl_emb.h
arch/powerpc/perf/core-fsl-emb.c