diff options
author | Kan Liang <[email protected]> | 2018-05-03 11:25:07 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-05-31 12:36:28 +0200 |
commit | d71f11c076c420c4e2fceb4faefa144e055e0935 (patch) | |
tree | 50fa93b56e14a6bf53d7e72bc3bfa3a4c75f6c16 /lib/test_overflow.c | |
parent | 2da331465f44f9618abe8837d1a68405d550b66e (diff) |
perf/x86/intel/uncore: Correct fixed counter index check for NHM
For Nehalem and Westmere, there is only one fixed counter for W-Box.
There is no index which is bigger than UNCORE_PMC_IDX_FIXED.
It is not correct to use >= to check fixed counter.
The code quality issue will bring problem when new counter index is
introduced.
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions