Subject: Re: [PATCHv2 1/1] powerpc: Update page in counter for CMM

From: Benjamin Herrenschmidt <[email-masked]>
Date: Wed, 22 Oct 2008 11:11:31 +1100

> -	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.