From: David Brownell <david-b@pacbell•net>
To: Jeff Garzik <jgarzik@pobox•com>
Cc: Claudio Lanconelli <lanconelli.claudio@eptar•com>,
netdev@vger•kernel.org
Subject: Re: [PATCH] net/enc28j60: low power mode
Date: Wed, 5 Mar 2008 15:31:16 -0800 [thread overview]
Message-ID: <200803051531.16334.david-b@pacbell.net> (raw)
In-Reply-To: <47CE806B.9010102@pobox.com>
On Wednesday 05 March 2008, Jeff Garzik wrote:
> Claudio Lanconelli wrote:
> > Keep enc28j60 chips in low-power mode when they're not in use.
> > At typically 120 mA, these chips run hot even when idle; this
> > low power mode cuts that power usage by a factor of around 100.
> >
> > This version provides a generic routine to poll a register until
> > its masked value equals some value ...
>
> It's a bit silly to create a variable just to store the result of
> msecs_to_jiffies(constant)
Sillier to replace a compile-time constant with a runtime function
call! The msecs_to_jiffies() implementation doesn't optimize the
case of a constant parameter -- there's no inlined version.
prev parent reply other threads:[~2008-03-05 23:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-14 10:20 [PATCH] net/enc28j60: low power mode Claudio Lanconelli
2008-03-05 11:13 ` Jeff Garzik
2008-03-05 23:31 ` David Brownell [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=200803051531.16334.david-b@pacbell.net \
--to=david-b@pacbell$(echo .)net \
--cc=jgarzik@pobox$(echo .)com \
--cc=lanconelli.claudio@eptar$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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