From 1d317f90d97ca8e539939ee896bd04c7efe936ca Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Wed, 28 Oct 2009 18:02:15 +0900 Subject: [PATCH] sh: perf events: Kill off left over debugging cruft. num_events should be compared > MAX_HWEVENTS and not >=. The latter was used as a debugging test which accidentally slipped in. Signed-off-by: Paul Mundt --- arch/sh/kernel/perf_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/kernel/perf_event.c b/arch/sh/kernel/perf_event.c index d1510702f201..4449f0ac9bf8 100644 --- a/arch/sh/kernel/perf_event.c +++ b/arch/sh/kernel/perf_event.c @@ -308,7 +308,7 @@ int register_sh_pmu(struct sh_pmu *pmu) pr_info("Performance Events: %s support registered\n", pmu->name); - WARN_ON(pmu->num_events >= MAX_HWEVENTS); + WARN_ON(pmu->num_events > MAX_HWEVENTS); return 0; } -- 2.39.5