Skip to content

Commit

Permalink
sh: perf events: Kill off left over debugging cruft.
Browse files Browse the repository at this point in the history
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 <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Oct 28, 2009
1 parent ac44e66 commit 1d317f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 1d317f9

Please sign in to comment.