Commit 1d317f90 authored by Paul Mundt's avatar Paul Mundt

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent ac44e669
...@@ -308,7 +308,7 @@ int register_sh_pmu(struct sh_pmu *pmu) ...@@ -308,7 +308,7 @@ int register_sh_pmu(struct sh_pmu *pmu)
pr_info("Performance Events: %s support registered\n", pmu->name); 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; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment