Re: [PATCH 1/2] Add round_jiffies_up and related routines

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Tuesday, November 4, 2008 - 8:33 pm

Alan Stern wrote:

Heh... I have exactly the same patches but mines were named
round_up_jiffies().


jiffies is volatile.  No need for explicit barrier, but this part is
necessary for correct operation as if jiffies go up by two the
calculation will wrap and the returned value will be very large.  I
think this fix deserves a separate patch and proper explanation.

Thanks.

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] Add round_jiffies_up and related routines, Tejun Heo, (Tue Nov 4, 8:33 pm)