From: "Mark A. Greer" <mgreer@mvista.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: "Mark A. Greer" <mgreer@mvista.com>,
Randy Vinson <rvinson@mvista.com>,
linux-kernel@vger.kernel.org,
Arjan van de Ven <arjan@infradead.org>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH, RFC] Stop using tasklet in ds1374 RTC driver
Date: Mon, 27 Mar 2006 13:38:02 -0700 [thread overview]
Message-ID: <20060327203802.GA10238@mag.az.mvista.com> (raw)
In-Reply-To: <20060324215311.8ea42d20.khali@linux-fr.org>
On Fri, Mar 24, 2006 at 09:53:11PM +0100, Jean Delvare wrote:
> Hi Mark,
>
> > > I've attached a similar patch that has been tested using the DS1374 on the
> > > Freescale MPC8349MDS reference system. It is patterned after a similar
> > > change made to the m41t00 driver. The changes work, but I am also
> > > unfamiliar with workqueues, so my patch may not be any better.
> >
> > I'm no expert in workqueues either; however, after reading
> > http://lwn.net/Articles/23634/, I believe that its unnecessary for an
> > rtc driver to have its own workqueue since rtc writes aren't particularly
> > time-critical. If I am correct, then Randy's patch uses the proper wq calls.
> >
> > Agree?
>
> I'm not sure. My first try was mostly similar to Randy's, using the
> shared workqueue. However, LDD3 (and, for that matter, the article you
> pointed to) says to be cautious when using the shared workqueue, not
> only because of by what others can do to you, but also because of what
> your can do to others.
>
> ds1374_set_tlet triggers many i2c transfers, which may delay or sleep
> depending on the underlying i2c implementation, and definitely will
> take some time (at least 224 I2C clock cycles if I'm counting properly,
> that is 14 ms at 16 kHz.)
>
> So I came to the conclusion that it wouldn't be fair to other users if
> ds1374 was using the shared workqueue. Now, I really don't know for
> sure, so I'll let workqueue experts decide what should be done here.
Hmm, you raise a good point, Jean. I just talked to Randy and we agreed
to agree with you. :) Randy will make a patch for the ds1374 and I'll
rework the patches for the m41t00. Stay tuned...
Mark
next prev parent reply other threads:[~2006-03-27 20:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-23 19:10 Jean Delvare
2006-03-23 20:42 ` Randy Vinson
2006-03-23 21:40 ` Mark A. Greer
[not found] ` <C6071445-B39C-4230-92FA-E8EE5717FD05@kernel.crashing.org>
2006-03-23 22:27 ` Mark A. Greer
2006-03-24 20:53 ` Jean Delvare
2006-03-27 20:38 ` Mark A. Greer [this message]
2006-03-27 21:15 ` Jean Delvare
2006-03-27 22:31 ` Randy Vinson
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=20060327203802.GA10238@mag.az.mvista.com \
--to=mgreer@mvista.com \
--cc=arjan@infradead.org \
--cc=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rvinson@mvista.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
all inboxes | Powered by JetHome®