From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] hwmon: (lm75) Speed up detection
Date: Thu, 24 Feb 2011 14:53:08 +0000 [thread overview]
Message-ID: <20110224145308.GA6712@ericsson.com> (raw)
In-Reply-To: <20110224112322.3a47636e@endymion.delvare>
On Thu, Feb 24, 2011 at 05:23:22AM -0500, Jean Delvare wrote:
> Make the LM75/LM75A device detection faster:
>
> * Don't read the current temperature value when we don't use it.
> * Check for unused bits in the configuration register as soon as we
> have read its value.
> * Don't use word reads, not all devices support this, and some which
> don't misbehave when you try.
> * Check for cycling register values every 40 register addresses
> instead of every 8, it's 5 times faster and just as efficient.
>
> Some of these improvements come straight from the user-space
> sensors-detect script, so both detection routines are in line now.
>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> Cc: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2011-02-24 14:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 10:23 [lm-sensors] [PATCH] hwmon: (lm75) Speed up detection Jean Delvare
2011-02-24 14:53 ` Guenter Roeck [this message]
2011-02-24 16:34 ` Lennart Sorensen
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=20110224145308.GA6712@ericsson.com \
--to=guenter.roeck@ericsson.com \
--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.