diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-10-28 18:02:15 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-28 18:02:15 +0900 |
commit | 1d317f90d97ca8e539939ee896bd04c7efe936ca (patch) | |
tree | 09e7141e4f84adf4ad5cbfbc44738c2985756df4 /arch/sh | |
parent | ac44e6694755744fe96442919da1f2c7e87a2a61 (diff) | |
download | linux-3.10-1d317f90d97ca8e539939ee896bd04c7efe936ca.tar.gz linux-3.10-1d317f90d97ca8e539939ee896bd04c7efe936ca.tar.bz2 linux-3.10-1d317f90d97ca8e539939ee896bd04c7efe936ca.zip |
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')
-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 d1510702f20..4449f0ac9bf 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; } |