summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/mmu-hash64.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2010-08-02 22:35:18 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-08-24 07:26:27 +0200
commit3469270807ffde921ad36f90d7b8c8e095d3e4e8 (patch)
treea8800cfaca895fea566c61de23278bda6cbe748e /arch/powerpc/include/asm/mmu-hash64.h
parentpowerpc: Use is_32bit_task() helper to test 32 bit binary (diff)
downloadlinux-3469270807ffde921ad36f90d7b8c8e095d3e4e8.tar.xz
linux-3469270807ffde921ad36f90d7b8c8e095d3e4e8.zip
powerpc/mm: Fix vsid_scrample typo
The code is wrapped in an #if 0, but it's wrong so we may as well fix it. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/mmu-hash64.h')
-rw-r--r--arch/powerpc/include/asm/mmu-hash64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/mmu-hash64.h b/arch/powerpc/include/asm/mmu-hash64.h
index 0e398cfee2c8..acac35d5b382 100644
--- a/arch/powerpc/include/asm/mmu-hash64.h
+++ b/arch/powerpc/include/asm/mmu-hash64.h
@@ -433,7 +433,7 @@ typedef struct {
* with. However gcc is not clever enough to compute the
* modulus (2^n-1) without a second multiply.
*/
-#define vsid_scrample(protovsid, size) \
+#define vsid_scramble(protovsid, size) \
((((protovsid) * VSID_MULTIPLIER_##size) % VSID_MODULUS_##size))
#else /* 1 */