diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-10-28 05:02:15 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-28 05:02:15 -0400 |
commit | 1d317f90d97ca8e539939ee896bd04c7efe936ca (patch) | |
tree | 09e7141e4f84adf4ad5cbfbc44738c2985756df4 /arch/sh/kernel/perf_event.c | |
parent | ac44e6694755744fe96442919da1f2c7e87a2a61 (diff) |
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 <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/perf_event.c')
-rw-r--r-- | arch/sh/kernel/perf_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
308 | 308 | ||
309 | pr_info("Performance Events: %s support registered\n", pmu->name); | 309 | pr_info("Performance Events: %s support registered\n", pmu->name); |
310 | 310 | ||
311 | WARN_ON(pmu->num_events >= MAX_HWEVENTS); | 311 | WARN_ON(pmu->num_events > MAX_HWEVENTS); |
312 | 312 | ||
313 | return 0; | 313 | return 0; |
314 | } | 314 | } |