From: Martin Dalecki <dalecki@evision-ventures.com>
To: John Weber <john.weber@linuxhq.com>
Cc: Tim Schmielau <tim@physik3.uni-rostock.de>,
Linus Torvalds <torvalds@transmeta.com>, Andi Kleen <ak@muc.de>,
linux-kernel@vger.kernel.org
Subject: Re: 2.5.13 IDE and preemptible kernel problems
Date: Sun, 05 May 2002 17:13:27 +0200 [thread overview]
Message-ID: <3CD54C17.7000304@evision-ventures.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0205050850090.15809-100000@gans.physik3.uni-rostock.de> <3CD4E1DC.9040704@linuxhq.com>
Uz.ytkownik John Weber napisa?:
> Tim Schmielau wrote:
>
>> On Sat, 4 May 2002, Linus Torvalds wrote:
>>
>>
>>> Hmm.. Something like
>>>
>>> #define timeout_expired(x) time_after(jiffies, (x))
>>>
>>> migth indeed make sense.
>>>
>>> But I'm a lazy bastard. Is there some victim^H^H^H^H^H^Hhero who would
>>> want to do the 'sed s/time_after(jiffies,/timeout_expired(/g' and verify
>>> that it does the right thing and send it to me as a patch?
>>>
>>> The thing is, I wonder if it should be "time_after(jiffies,x)" or
>>> "time_after_eq(jiffies,x)". There's a single-tick difference there..
>>>
>> That probably means we need both, as something like
>> timeout_expired(x+1) seems to call for new "off by one" errors.
>
>
> Here's a patch with the s/time_after(jiffies,/timeout_expired(/g and
> s/time_after_eq(jiffies,/timeout_expired(/g
Yeep. And now please take the next step and grep for "jiffies + 1"
to realize that a timeout primitive along the following
take_a_nap(temeout_function, timeout_data);
would help simpify the usage of timers and speed up the kernel
due to cache locality for stuff which is added to the global
timer list just for doing short micro-polls and beeing taken
out ther on the next scheduler round. In esp. nearly every
single eth driver out there shows precisely what I mean.
Becouse most of the timers get only added for one jiffie!
next prev parent reply other threads:[~2002-05-05 16:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-03 15:38 2.5.13 IDE and preemptible kernel problems Andi Kleen
2002-05-03 14:57 ` Martin Dalecki
2002-05-03 18:14 ` Linus Torvalds
2002-05-04 23:58 ` Martin Dalecki
2002-05-05 0:24 ` Martin Dalecki
2002-05-05 2:09 ` Linus Torvalds
2002-05-05 7:04 ` Tim Schmielau
[not found] ` <3CD4E1DC.9040704@linuxhq.com>
2002-05-05 15:13 ` Martin Dalecki [this message]
2002-05-06 16:01 ` Alan Cox
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=3CD54C17.7000304@evision-ventures.com \
--to=dalecki@evision-ventures.com \
--cc=ak@muc.de \
--cc=john.weber@linuxhq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tim@physik3.uni-rostock.de \
--cc=torvalds@transmeta.com \
/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