Messages in this thread | | | Date | Sat, 4 Mar 2006 19:10:44 -0600 | From | Matt Mackall <> | Subject | Re: [PATCH] fix potential jiffies overflow |
| |
On Fri, Mar 03, 2006 at 12:31:10PM +0900, Atsushi Nemoto wrote: > >>>>> On Thu, 2 Mar 2006 18:45:02 -0800, Andrew Morton <akpm@osdl.org> said: > sec = get_cmos_time() + clock_cmos_diff; > - sleep_length = (get_cmos_time() - sleep_start) * HZ; > + sleep_length = (u64)(get_cmos_time() - sleep_start) * HZ;
Calls to get_cmos_time() currently take an average of .5 seconds as it waits for a clock edge to go by. I've got some patches queueing up to eliminate this but it's probably worth caching the result here anyway.
-- Mathematics is the supreme nostalgia of our time. - 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/
| |