should_yield problem [Was: svn commit: r251322 - head/sys/kern]

Andriy Gapon avg at
Tue Jul 2 18:09:36 UTC 2013

on 02/07/2013 20:52 Attilio Rao said the following:
> I was just pointing out that the real bug is not in the subtraction
> itself but on the hogticks comparison.
> This is because hogticks is not an absolute measurement but it
> represents really a ticks difference.
> In my opinion we should define hogticks as an unsigned int and add a
> small comment saying that it is a differential.
> This will fix the issue.

I think that my original suggestion is equivalently well if not more obvious.
This is a common knowledge:

distance = (signed)( i1 - i2 )

Andriy Gapon

More information about the svn-src-head mailing list