public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Ron <ron@debian.org>
Cc: mingo@elte.hu, a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fix for sched_clock() when using jiffies
Date: Sat, 9 May 2009 00:04:06 -0700	[thread overview]
Message-ID: <20090509000406.c2022a0b.akpm@linux-foundation.org> (raw)
In-Reply-To: <20090509040537.GA5417@homer.shelbyville.oz>

On Sat, 9 May 2009 13:35:37 +0930 Ron <ron@debian.org> wrote:

>  All 'real'
> sched_clock implementations (empirically) count from 0, except this
> default one.

Well you live and learn.

Yup, we should make the toy sched_clock() match the fancy ones.


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.

otooh, sched_clock() wraparound takes nearly 500 years so we can
afford to wait until linux-2.7.x to fix this.


I'll go off and find your original patch.  This was all a difficult way of
writing the changelog ;)

  reply	other threads:[~2009-05-09  7:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26 15:06 [patch] fix for sched_clock() when using jiffies Ron
2008-11-26 15:16 ` Peter Zijlstra
2008-11-26 15:31   ` Ron
2008-11-28 14:40     ` Ingo Molnar
2009-05-08 13:24       ` [PATCH] " Ron
2009-05-08 20:04         ` Ron
2009-05-08 23:01           ` Andrew Morton
2009-05-09  0:40             ` Ron
2009-05-09  1:15               ` Andrew Morton
2009-05-09  4:05                 ` Ron
2009-05-09  7:04                   ` Andrew Morton [this message]
2009-05-10 10:45                     ` Ron
2009-05-09 12:41                 ` Paul Mundt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090509000406.c2022a0b.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=ron@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox