All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] adt7470: Update sensors periodically via
Date: Thu, 26 Jul 2007 16:58:18 +0000	[thread overview]
Message-ID: <46A8D2AA.6070100@hhs.nl> (raw)
In-Reply-To: <20070726010421.GM19586@tree.beaverton.ibm.com>

Darrick J. Wong wrote:
> On Thu, Jul 26, 2007 at 08:08:09AM -0700, Juerg Haefliger wrote:
>> Hi Darrick,
>>
>> I guess I'm not seeing the big picture :-) The problem you're trying
>> to solve is that the reading of the registers takes a long time and
>> needs to be able to sleep?
> 
> Yes, and also that sleeping in the sysfs read function is not desirable.
> Personally, I was fine with that, but Mr. de Goede was concerned about
> it, so I decided to try to fix it.  I admit, the dual-delayed-workqueue
> method is a bit strange, but it solves the reading problem at a slight
> cost of waking up the CPU even if nobody's watching the sensors.
> 

I just read in another thread, that other hwmon drivers suffer from similar 
problems, so I guess userspace will just have to be able to deal with this, and 
the best fix is not to fix it. Sorry to waist everybody's time on this.

Regards,

Hans


p.s.

You could still try to shave some time off by not reading all the limits etc 
each update.


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2007-07-26 16:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26  1:04 [lm-sensors] [PATCH] adt7470: Update sensors periodically via timer Darrick J. Wong
2007-07-26  1:08 ` [lm-sensors] [PATCH] adt7470: Update sensors periodically via Darrick J. Wong
2007-07-26  1:19 ` Juerg Haefliger
2007-07-26  7:30 ` Darrick J. Wong
2007-07-26  7:49 ` Hans de Goede
2007-07-26 15:08 ` Juerg Haefliger
2007-07-26 16:57 ` Darrick J. Wong
2007-07-26 16:58 ` Hans de Goede [this message]
2007-07-26 20:03 ` Philip Pokorny
2007-07-29 19:18 ` Mark M. Hoffman

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=46A8D2AA.6070100@hhs.nl \
    --to=j.w.r.degoede@hhs.nl \
    --cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.