mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "NucleoDyne Systems, " "Inc." <nucleon@nucleodyne.com>
To: Mike Galbraith <efault@gmx.de>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: sleep and wakeup at microsecond boundary
Date: 06 Sep 2004 22:46:50 -0700	[thread overview]
Message-ID: <1094536010.3436.34.camel@localhost.localdomain> (raw)
In-Reply-To: <5.2.1.1.2.20040905085650.00b1e640@pop.gmx.net>

Hello,
      Let me explain the requirement a little more in detail.

Consider the routine sleep_on_timeout(, timeout) in sched.c:

A timer is started and then schedule() is called. The timer expires
after present jiffies + timeout (in jiffies) period.

On  x86 the jiffies is updated every time PIT raises interrupt and
do_timer() is called, i.e. once in every 10ms.

So we can set timeout in multiples of 10ms. 

We are developing a very powerful system (not x86 based) with multiple
CPUs, one of them will be running linux and will act as a co-processor
for the other CPUs running different OS.

On the CPU running linux we need to be able to call sleep_on_timeout()
with more granular expiration time, may be in multiples of microseconds.

I already have done the investigation and looking for feedback from the
developers on all possible issues.

Hope this explains.


Thanks,
Kallol Biswas



On Sun, 2004-09-05 at 00:09, Mike Galbraith wrote:
> At 12:51 PM 9/4/2004 -0700, NucleoDyne Systems, " "Inc. wrote:
> >Hello,
> >       We have a requirement to implement the sleep and wakeup mechanism
> >at microsecond boundary in 2.4 kernel.
> 
> I've re-visited this message about 10 times now, so I suppose I'm curious 
> enough to ask:  why on God's green Earth would someone want to do 
> that?  (to _any_ kernel, but I'm mostly wondering why [TILT] anyone would 
> do such a thing to a GP kernel)
> 
>          -Mike

On Sat, 2004-09-04 at 12:51, NucleoDyne Systems, Inc. wrote: \

> Hello,
>       We have a requirement to implement the sleep and wakeup mechanism
> at microsecond boundary in 2.4 kernel. The intent of this mail is to
> start a discussion on this topic and collect inputs from the kernel
> developers. Any reply on the issues of implementing such a feature will
> be greatly appreciated.
> 
> Thanks,
> Kallol Biswas


-- 
--
NucleoDyne Corporation
nucleon@nucleodyne.com
www.nucleodyne.com
-- 



       reply	other threads:[~2004-09-07  5:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5.2.1.1.2.20040905085650.00b1e640@pop.gmx.net>
2004-09-07  5:46 ` NucleoDyne Systems,  Inc. [this message]
2004-09-07  6:13   ` Arjan van de Ven
2004-09-04 19:51 NucleoDyne Systems,  Inc.

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=1094536010.3436.34.camel@localhost.localdomain \
    --to=nucleon@nucleodyne.com \
    --cc=efault@gmx.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®