diff options
| -rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel_uncore.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c index 65bbbea38b9c..e009f3cedf89 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c +++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c | |||
| @@ -2946,10 +2946,7 @@ again: | |||
| 2946 | * extra registers. If we failed to take an extra | 2946 | * extra registers. If we failed to take an extra |
| 2947 | * register, try the alternative. | 2947 | * register, try the alternative. |
| 2948 | */ | 2948 | */ |
| 2949 | if (idx % 2) | 2949 | idx ^= 1; |
| 2950 | idx--; | ||
| 2951 | else | ||
| 2952 | idx++; | ||
| 2953 | if (idx != reg1->idx % 6) { | 2950 | if (idx != reg1->idx % 6) { |
| 2954 | if (idx == 2) | 2951 | if (idx == 2) |
| 2955 | config1 >>= 8; | 2952 | config1 >>= 8; |
