diff options
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/fault.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index eda5b0ca4af2..17bbf6f91fbe 100644 --- a/arch/powerpc/mm/fault.c +++ b/arch/powerpc/mm/fault.c | |||
@@ -312,6 +312,7 @@ good_area: | |||
312 | } | 312 | } |
313 | if (ret & VM_FAULT_MAJOR) { | 313 | if (ret & VM_FAULT_MAJOR) { |
314 | current->maj_flt++; | 314 | current->maj_flt++; |
315 | perf_swcounter_event(PERF_COUNT_PAGE_FAULTS_MAJ, 1, 0, regs); | ||
315 | #ifdef CONFIG_PPC_SMLPAR | 316 | #ifdef CONFIG_PPC_SMLPAR |
316 | if (firmware_has_feature(FW_FEATURE_CMO)) { | 317 | if (firmware_has_feature(FW_FEATURE_CMO)) { |
317 | preempt_disable(); | 318 | preempt_disable(); |
@@ -319,8 +320,10 @@ good_area: | |||
319 | preempt_enable(); | 320 | preempt_enable(); |
320 | } | 321 | } |
321 | #endif | 322 | #endif |
322 | } else | 323 | } else { |
323 | current->min_flt++; | 324 | current->min_flt++; |
325 | perf_swcounter_event(PERF_COUNT_PAGE_FAULTS_MIN, 1, 0, regs); | ||
326 | } | ||
324 | up_read(&mm->mmap_sem); | 327 | up_read(&mm->mmap_sem); |
325 | return 0; | 328 | return 0; |
326 | 329 | ||