Re: [PATCH] x86/hweight: Don't clobber %rdi

From: Jiri Kosina
Date: Mon Aug 08 2016 - 14:57:11 EST


On Mon, 8 Aug 2016, Peter Zijlstra wrote:

> > > The caller expects %rdi to remain intact, push+pop it make that happen.
> >
> > Indeed. Applied,
>
> See also:
>
> lkml.kernel.org/r/alpine.LNX.2.00.1608081634530.22028@xxxxxxxxxxxxx

Ville's patch is the proper thing to do; I still think the comments
probably should be removed as they might provide more confusion than help,
but that's a separate discussion.

Thanks,

--
Jiri Kosina
SUSE Labs