[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090510104515.GC5417@homer.shelbyville.oz>
Date: Sun, 10 May 2009 20:15:15 +0930
From: Ron <ron@...ian.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: mingo@...e.hu, a.p.zijlstra@...llo.nl, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fix for sched_clock() when using jiffies
On Sat, May 09, 2009 at 12:04:06AM -0700, Andrew Morton wrote:
> otoh, sched_clock() should do the INTITAL_JIFFIES offsetting as well,
> because there are probably callers of sched_clock() who are buggy in
> the presence of sched_clock()-return-value wraparound.
I had pondered that too ...
FWIW, that probably could be added fairly trivially as an explicit
debug mode. Since the only effect should be the visible anomaly in
the printk timestamp, and that would be a Good Thing in this mode
because you'd get to see exactly when it wrapped relative to when
things do go pear shaped and start barking to kernel log about it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists