[PATCH] powerpc/mm: use _raw variant of page table accessors

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Jun 6 08:30:53 AEST 2016


On Fri, 2016-06-03 at 15:34 +1000, Balbir Singh wrote:
> 
> Can we just save the cpu_to_be64(_PAGE_PTE) as _BE64_PAGE_PTE constant
> in big-endian (pgtable-be-types.h) and similar for other things. I know its
> not the best option, but we don't really expect these bits to change often or anymore
> 
How does that help ? The compiler solves it at compile time either
way, I'm not sure adding yet another constant will improve
readability here.

Cheers,
Ben.



More information about the Linuxppc-dev mailing list