projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97bc386
)
ARC: [perf] Fix a few thinkos
author
Vineet Gupta
<vgupta@synopsys.com>
Thu, 28 Nov 2013 10:19:59 +0000
(15:49 +0530)
committer
Vineet Gupta
<vgupta@synopsys.com>
Thu, 28 Nov 2013 10:19:59 +0000
(15:49 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/perf_event.c
patch
|
blob
|
history
diff --git
a/arch/arc/kernel/perf_event.c
b/arch/arc/kernel/perf_event.c
index
e46d81f
..
63177e4
100644
(file)
--- a/
arch/arc/kernel/perf_event.c
+++ b/
arch/arc/kernel/perf_event.c
@@
-79,9
+79,9
@@
static int arc_pmu_cache_event(u64 config)
cache_result = (config >> 16) & 0xff;
if (cache_type >= PERF_COUNT_HW_CACHE_MAX)
return -EINVAL;
- if (cache_
type
>= PERF_COUNT_HW_CACHE_OP_MAX)
+ if (cache_
op
>= PERF_COUNT_HW_CACHE_OP_MAX)
return -EINVAL;
- if (cache_
type
>= PERF_COUNT_HW_CACHE_RESULT_MAX)
+ if (cache_
result
>= PERF_COUNT_HW_CACHE_RESULT_MAX)
return -EINVAL;
ret = arc_pmu_cache_map[cache_type][cache_op][cache_result];