Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123003
b: refs/heads/master
c: 4090019
h: refs/heads/master
i:
  123001: ea3e1f7
  122999: 7ecb912
v: v3
  • Loading branch information
Brian King authored and Paul Mackerras committed Nov 5, 2008
1 parent 924070f commit 0eb5eae
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ef8014debb6410ed1960c4477d0006df11157c1
refs/heads/master: 409001948d9f221c94a61c3ee96de112755fc04d
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/include/asm/lppaca.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ struct lppaca {
//=============================================================================
// CACHE_LINE_4-5 0x0180 - 0x027F Contains PMC interrupt data
//=============================================================================
u8 pmc_save_area[256]; // PMC interrupt Area x00-xFF
u32 page_ins; // CMO Hint - # page ins by OS x00-x04
u8 pmc_save_area[252]; // PMC interrupt Area x04-xFF
} __attribute__((__aligned__(0x400)));

extern struct lppaca lppaca[];
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/powerpc/kernel/paca.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct lppaca lppaca[] = {
.end_of_quantum = 0xfffffffffffffffful,
.slb_count = 64,
.vmxregs_in_use = 0,
.page_ins = 0,
},
};

Expand Down
12 changes: 10 additions & 2 deletions trunk/arch/powerpc/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/kprobes.h>
#include <linux/kdebug.h>

#include <asm/firmware.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/mmu.h>
Expand Down Expand Up @@ -318,9 +319,16 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
goto do_sigbus;
BUG();
}
if (ret & VM_FAULT_MAJOR)
if (ret & VM_FAULT_MAJOR) {
current->maj_flt++;
else
#ifdef CONFIG_PPC_SMLPAR
if (firmware_has_feature(FW_FEATURE_CMO)) {
preempt_disable();
get_lppaca()->page_ins++;
preempt_enable();
}
#endif
} else
current->min_flt++;
up_read(&mm->mmap_sem);
return 0;
Expand Down

0 comments on commit 0eb5eae

Please sign in to comment.