aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/core-book3s.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/perf/core-book3s.c')
-rw-r--r--arch/powerpc/perf/core-book3s.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c
index 2e3eb7431571..9e3da168d54c 100644
--- a/arch/powerpc/perf/core-book3s.c
+++ b/arch/powerpc/perf/core-book3s.c
@@ -793,6 +793,11 @@ void perf_event_print_debug(void)
793 u32 pmcs[MAX_HWEVENTS]; 793 u32 pmcs[MAX_HWEVENTS];
794 int i; 794 int i;
795 795
796 if (!ppmu) {
797 pr_info("Performance monitor hardware not registered.\n");
798 return;
799 }
800
796 if (!ppmu->n_counter) 801 if (!ppmu->n_counter)
797 return; 802 return;
798 803