* [PATCH] fc0011: use usleep_range()
@ 2012-04-03 9:08 Michael Büsch
2012-04-03 10:20 ` Antti Palosaari
0 siblings, 1 reply; 2+ messages in thread
From: Michael Büsch @ 2012-04-03 9:08 UTC (permalink / raw)
To: Antti Palosaari; +Cc: linux-media
[-- Attachment #1: Type: text/plain, Size: 964 bytes --]
Use usleep_range() instead of msleep() to improve power saving opportunities.
Signed-off-by: Michael Buesch <m@bues.ch>
---
Index: linux/drivers/media/common/tuners/fc0011.c
===================================================================
--- linux.orig/drivers/media/common/tuners/fc0011.c 2012-04-03 10:44:07.243418827 +0200
+++ linux/drivers/media/common/tuners/fc0011.c 2012-04-03 10:46:29.342851336 +0200
@@ -167,7 +167,7 @@
err = fc0011_writereg(priv, FC11_REG_VCOCAL, FC11_VCOCAL_RUN);
if (err)
return err;
- msleep(10);
+ usleep_range(10000, 20000);
err = fc0011_readreg(priv, FC11_REG_VCOCAL, value);
if (err)
return err;
@@ -423,7 +423,7 @@
err = fc0011_vcocal_read(priv, NULL);
if (err)
return err;
- msleep(10);
+ usleep_range(10000, 50000);
err = fc0011_readreg(priv, FC11_REG_RCCAL, ®s[FC11_REG_RCCAL]);
if (err)
--
Greetings, Michael.
PGP encryption is encouraged / 908D8B0E
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fc0011: use usleep_range()
2012-04-03 9:08 [PATCH] fc0011: use usleep_range() Michael Büsch
@ 2012-04-03 10:20 ` Antti Palosaari
0 siblings, 0 replies; 2+ messages in thread
From: Antti Palosaari @ 2012-04-03 10:20 UTC (permalink / raw)
To: Michael Büsch; +Cc: linux-media
On 03.04.2012 12:08, Michael Büsch wrote:
> Use usleep_range() instead of msleep() to improve power saving opportunities.
>
> Signed-off-by: Michael Buesch<m@bues.ch>
Applied thanks!
http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental
regards
Antti
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-03 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 9:08 [PATCH] fc0011: use usleep_range() Michael Büsch
2012-04-03 10:20 ` Antti Palosaari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).