Re: [1/3] powerpc/mm/hash: Remove the superfluous bitwise operation when find hpte group

2018-07-24 Thread Michael Ellerman
On Fri, 2018-06-29 at 08:36:29 UTC, "Aneesh Kumar K.V" wrote: > From: "Aneesh Kumar K.V" > > When computing the starting slot number for a hash page table group we used > to do this > hpte_group = ((hash & htab_hash_mask) * HPTES_PER_GROUP) & ~0x7UL; > > Multiplying with 8 (HPTES_PER_GROUP)

[PATCH 1/3] powerpc/mm/hash: Remove the superfluous bitwise operation when find hpte group

2018-06-29 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" When computing the starting slot number for a hash page table group we used to do this hpte_group = ((hash & htab_hash_mask) * HPTES_PER_GROUP) & ~0x7UL; Multiplying with 8 (HPTES_PER_GROUP) imply the last three bits are 0. Hence we really don't need to clear then