[PATCH] [Powerpc V2] fix switch_slb handling of 1T ESID values
Stephen Rothwell
sfr at canb.auug.org.au
Tue Oct 30 10:33:50 EST 2007
Hi Will,
Just a trivial comment ...
On Mon, 29 Oct 2007 13:32:19 -0500 Will Schmidt <will_schmidt at vnet.ibm.com> wrote:
>
> +static inline int esids_match(unsigned long addr1, unsigned long addr2)
> +{
> + int esid_1t_count;
> +
> + /* System is not 1T segment size capable. */
> + if (!cpu_has_feature(CPU_FTR_1T_SEGMENT))
> + return (GET_ESID(addr1) == GET_ESID(addr2));
> +
> + esid_1t_count = (((addr1>>SID_SHIFT_1T)!=0) + ((addr2>>SID_SHIFT_1T)!=0));
Please use spaces around binary operators (as you have elsewhere). Even
if it pushes the line slightly over 80 characters ...
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20071030/133299e2/attachment.pgp>
More information about the Linuxppc-dev
mailing list