ARM: improve compiler's ability to optimize page tables
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 21 Nov 2010 14:42:47 +0000 (14:42 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 21 Nov 2010 14:42:47 +0000 (14:42 +0000)
Allow the compiler to better optimize the page table walking code
by avoiding over-complex pmd_addr_end() calculations.  These
calculations prevent the compiler spotting that we'll never iterate
over the PMD table, causing it to create double nested loops where
a single loop will do.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found