Re: [PATCH v2] powerpc/fsl-booke: Fix settlbcam for 64-bit

2011-10-12 Thread Kumar Gala
On Oct 12, 2011, at 4:17 PM, Becky Bruce wrote: > From: Becky Bruce > > Currently, it does a cntlzd on the size and then subtracts it from > 21 this doesn't take into account the varying size of a "long". > Just use __ilog instead (and subtract the 10 we have to subtract > to get to the tsi

[PATCH v2] powerpc/fsl-booke: Fix settlbcam for 64-bit

2011-10-12 Thread Becky Bruce
From: Becky Bruce Currently, it does a cntlzd on the size and then subtracts it from 21 this doesn't take into account the varying size of a "long". Just use __ilog instead (and subtract the 10 we have to subtract to get to the tsize encoding). Also correct the comment about page sizes suppo