[PATCHv2 1/1] powerpc: Update page in counter for CMM
Benjamin Herrenschmidt
benh at kernel.crashing.org
Wed Oct 22 11:11:31 EST 2008
> - if (ret & VM_FAULT_MAJOR)
> + if (ret & VM_FAULT_MAJOR) {
> current->maj_flt++;
> - else
> + preempt_disable();
> + get_lppaca()->page_ins++;
> + preempt_enable();
> + } else
That isn't going to work very well on 32-bit or non-pseries
platforms :-)
We need either something like a ppc_md. callback or at least a test for
firmware feature... (which probably still needs an ifdef to build on
32 bit).
Cheers,
Ben.
More information about the Linuxppc-dev
mailing list