From: george anzinger <george@mvista.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Vojtech Pavlik <vojtech@suse.cz>, Manik Raina <manik@cisco.com>,
torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: [patch] Add i8253 spinlocks where needed.
Date: Tue, 28 May 2002 12:25:24 -0700 [thread overview]
Message-ID: <3CF3D9A4.29493860@mvista.com> (raw)
In-Reply-To: <20020526142142.A17042@ucw.cz> <3CF1E296.41228517@cisco.com> <20020527113757.A26574@ucw.cz> <3CF20548.3ED40699@cisco.com> <20020527121001.B26811@ucw.cz> <1022500580.11859.252.camel@irongate.swansea.linux.org.uk>
Alan Cox wrote:
>
> On Mon, 2002-05-27 at 11:10, Vojtech Pavlik wrote:
> > Well, probably yes, but still hd.c is a glacial relict, a driver nobody
> > (almost - it's for non-IDE "two ribbon" AT harddrives) uses. So this
> > driver is probably not enough justification for a global (as in all
> > archs) spinlock being added.
>
> It only uses the timer in the case that HD_DELAY > 0. This code is
> ultimately used for timing functions. A better approach would be to
> remove the use of the timer chip from the file entirely and use the
> perfectly adequate udelay() function instead.
>
> That would also conveniently make it do cpu_relax properly improving the
> performance of your ancient IDE controller when plugged into
> hyperthreading pentium IV 8)
>
It would also allow the high-res-timers to "mess" with the
timer (as it does) to generate sub-jiffie interrupts.
Actually, I would prefer moving the timer out of the general
code and making what ever uses it has come thru an
abstraction that hides exactly how it is done or even if it
access the timer chip or uses some other time source. This
could also be done accross archs. It is also possible that
code such as udelay() and friends already do all that is
needed. In short, I think the clock code should "own" the
timer and others should have to use what ever the clock code
exports.
--
George Anzinger george@mvista.com
High-res-timers:
http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
prev parent reply other threads:[~2002-05-28 19:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-26 12:21 [patch] Add i8253 spinlocks where needed Vojtech Pavlik
2002-05-27 7:39 ` Manik Raina
2002-05-27 9:37 ` Vojtech Pavlik
2002-05-27 10:07 ` Manik Raina
2002-05-27 10:10 ` Vojtech Pavlik
2002-05-27 11:56 ` Alan Cox
2002-05-28 19:25 ` george anzinger [this message]
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=3CF3D9A4.29493860@mvista.com \
--to=george@mvista.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=manik@cisco.com \
--cc=torvalds@transmeta.com \
--cc=vojtech@suse.cz \
/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