> - 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. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev