ARC: [perf] Fix a few thinkos

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
Vineet Gupta 2013-11-28 15:49:59 +05:30
parent 97bc386fc1
commit da990a4f2d
1 changed files with 2 additions and 2 deletions

View File

@ -79,9 +79,9 @@ static int arc_pmu_cache_event(u64 config)
cache_result = (config >> 16) & 0xff; cache_result = (config >> 16) & 0xff;
if (cache_type >= PERF_COUNT_HW_CACHE_MAX) if (cache_type >= PERF_COUNT_HW_CACHE_MAX)
return -EINVAL; return -EINVAL;
if (cache_type >= PERF_COUNT_HW_CACHE_OP_MAX) if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX)
return -EINVAL; return -EINVAL;
if (cache_type >= PERF_COUNT_HW_CACHE_RESULT_MAX) if (cache_result >= PERF_COUNT_HW_CACHE_RESULT_MAX)
return -EINVAL; return -EINVAL;
ret = arc_pmu_cache_map[cache_type][cache_op][cache_result]; ret = arc_pmu_cache_map[cache_type][cache_op][cache_result];