All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Roman Fietze <roman.fietze@telemotive.de>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] pata_mpc52xx: reduce code size by simple change of constant data types
Date: Mon, 29 Mar 2010 16:19:56 -0400	[thread overview]
Message-ID: <4BB10B6C.4070402@pobox.com> (raw)
In-Reply-To: <201003050827.40384.roman.fietze@telemotive.de>

On 03/05/2010 02:27 AM, Roman Fietze wrote:
> Hello List members, hello Jeff,
>
> I've prepared a totally simple patch that, if I did it and measured it
> correctly, reduces the text size as of the ppc-6xx-size command of
> pata-mpc52xx by more than 10%, by reducing the rodata size from 0x4a4
> to 0x17e bytes. This is simply done by changing the data types of the
> ATA timing constants.
>
> If you are interested at all, and it's worth the trouble, here the
> details:
>
> ppc-6xx-size:
>       text data bss  dec  hex filename
> old: 6532 1068   0 7600 1db0 pata-mpc52xx.o
> new: 5718 1068   0 6786 1a82 pata-mpc52xx.o
>
> The (assembler) code itself doesn't really change very much. I double
> checked the final results inside mpc52xx-ata-apply-timings() and they
> match. The driver is still working fine of course.
>
>
>
> Signed-off-by: Roman Fietze<roman.fietze@telemotive.de>
> ---
>   drivers/ata/pata_mpc52xx.c |   78 ++++++++++++++++++++++----------------------
>   1 files changed, 39 insertions(+), 39 deletions(-)

applied



      reply	other threads:[~2010-03-29 20:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-05  7:27 [PATCH] pata_mpc52xx: reduce code size by simple change of constant data types Roman Fietze
2010-03-29 20:19 ` Jeff Garzik [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=4BB10B6C.4070402@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=roman.fietze@telemotive.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.