All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: Improve the speed of netconsole
Date: Wed, 1 Aug 2012 12:35:57 -0400	[thread overview]
Message-ID: <201208011235.58009.vapier@gentoo.org> (raw)
In-Reply-To: <CANr=Z=bsQjWH=8-7KtM1A-vEbx3MhBRJMGYnt3RH7-HH+3=6HQ@mail.gmail.com>

On Monday 30 July 2012 17:08:41 Joe Hershberger wrote:
> On Wed, Jul 25, 2012 at 1:49 PM, Mike Frysinger wrote:
> > On Tuesday 24 July 2012 16:11:15 Joe Hershberger wrote:
> >> --- a/net/eth.c
> >> +++ b/net/eth.c
> >> 
> >> +#ifdef CONFIG_NETCONSOLE_PERSIST_ETH
> >> +int eth_init_state_only(bd_t *bis)
> >> +{
> >> +     eth_current->state = ETH_STATE_ACTIVE;
> >> +
> >> +     return 0;
> >> +}
> >> +
> >> +void eth_halt_state_only(void)
> >> +{
> >> +     eth_current->state = ETH_STATE_PASSIVE;
> >> +}
> >> +#endif
> > 
> > these *really* should be static inlines in the global header.  they're so
> > dirt simple, the overhead of the function call is probably much higher
> > than the single memory store.
> 
> I can do that, but I don't think it will save anything.  Since
> eth_current is static, I would have to change it to eth_get_dev(), and
> we're back to a function call.  Thoughts?

i wonder why eth_get_dev is an external func then :)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120801/6be7c85a/attachment.pgp>

  reply	other threads:[~2012-08-01 16:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-24 20:11 [U-Boot] [PATCH] net: Improve the speed of netconsole Joe Hershberger
2012-07-25  9:58 ` Stefano Babic
2012-07-25 18:49 ` Mike Frysinger
2012-07-30 21:08   ` Joe Hershberger
2012-08-01 16:35     ` Mike Frysinger [this message]
2012-08-01 16:42       ` Joe Hershberger
2012-08-03 20:59 ` [U-Boot] [PATCH v2] " Joe Hershberger
2012-08-10 16:22   ` Stefano Babic
2012-08-10 19:09   ` Joe Hershberger

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=201208011235.58009.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.de \
    /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.