[PATCH] powerpc/xive: fix the fuzz value in xive_pick_irq_target()

Michael Ellerman mpe at ellerman.id.au
Thu Aug 3 10:01:10 AEST 2017


Benjamin Herrenschmidt <benh at kernel.crashing.org> writes:

> On Wed, 2017-08-02 at 18:43 +0200, Cédric Le Goater wrote:
>> If xive_find_target_in_mask() fails to find a cpu, the fuzz value used
>> in xive_pick_irq_target() is decremented and reused in the last
>> returning call to xive_find_target_in_mask(). This can result in such
>> WARNINGs if the initial fuzz value is zero :
>
> Ah indeed ... would have worked better if "fuzz" had been unsigned.

Is that an ack or a changes requested?

chers


More information about the Linuxppc-dev mailing list