Re: [PATCH] PATCH: IPMI driver

Jeff Garzik (jgarzik@pobox.com)
Thu, 9 Jan 2003 15:42:11 -0500


On Thu, Jan 09, 2003 at 08:17:57PM +0000, Alan Cox wrote:
> On Thu, 2003-01-09 at 19:20, Dave Jones wrote:
> > time_diff = ((jiffies_now - kcs_info->last_timeout_jiffies)
>
> Thats valid for unsigned maths
> 0x00000001 - 0xFFFFFFFF = 0x00000002

Just as a general note (not to Alan), this often appears in ethernet
drivers, in their RX and TX producer/consumer ring counters... so don't
be surprised if you see this logic elsewhere in the kernel, too.

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/