projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac44e66
)
sh: perf events: Kill off left over debugging cruft.
author
Paul Mundt
<lethal@linux-sh.org>
Wed, 28 Oct 2009 09:02:15 +0000
(18:02 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Wed, 28 Oct 2009 09:02:15 +0000
(18:02 +0900)
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>
arch/sh/kernel/perf_event.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/perf_event.c
b/arch/sh/kernel/perf_event.c
index d1510702f201e2bbba74d913e02aed92ac57e7fd..4449f0ac9bf8a216223cd7739cfc9c3b3c9432fb 100644
(file)
--- 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;
}