diff options
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r-- | arch/x86/mm/fault.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index c8725752b6cd..f2d3324d9215 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -1140,10 +1140,13 @@ good_area: | |||
1140 | return; | 1140 | return; |
1141 | } | 1141 | } |
1142 | 1142 | ||
1143 | if (fault & VM_FAULT_MAJOR) | 1143 | if (fault & VM_FAULT_MAJOR) { |
1144 | tsk->maj_flt++; | 1144 | tsk->maj_flt++; |
1145 | else | 1145 | perf_swcounter_event(PERF_COUNT_PAGE_FAULTS_MAJ, 1, 0, regs); |
1146 | } else { | ||
1146 | tsk->min_flt++; | 1147 | tsk->min_flt++; |
1148 | perf_swcounter_event(PERF_COUNT_PAGE_FAULTS_MIN, 1, 0, regs); | ||
1149 | } | ||
1147 | 1150 | ||
1148 | check_v8086_mode(regs, address, tsk); | 1151 | check_v8086_mode(regs, address, tsk); |
1149 | 1152 | ||