From: Michael Neuling <mikey@neuling•org>
To: Stephen Rothwell <sfr@canb•auug.org.au>
Cc: ppc-dev <linuxppc-dev@ozlabs•org>, paulus@samba•org
Subject: Re: [POWERPC] minor paca optimisation
Date: Fri, 16 Mar 2007 12:18:09 -0500 [thread overview]
Message-ID: <12742.1174065489@neuling.org> (raw)
In-Reply-To: <20070316174707.8a5ae78c.sfr@canb.auug.org.au>
> Move the slb_shadow_ptr field into the first cache line since it is
> (like evrything there) read only after boot. It is in fact statically
> initialised and there after only read.
>
> Signed-off-by: Stephen Rothwell <sfr@canb•auug.org.au>
Acked-by: Michael Neuling <mikey@neuling•org>
> ---
> include/asm-powerpc/paca.h | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> --
> Cheers,
> Stephen Rothwell sfr@canb•auug.org.au
>
> diff --git a/include/asm-powerpc/paca.h b/include/asm-powerpc/paca.h
> index 0d3adc0..4de851d 100644
> --- a/include/asm-powerpc/paca.h
> +++ b/include/asm-powerpc/paca.h
> @@ -70,6 +70,7 @@ struct paca_struct {
> s16 hw_cpu_id; /* Physical processor number */
> u8 cpu_start; /* At startup, processor spins until */
> /* this becomes non-zero. */
> + struct slb_shadow *slb_shadow_ptr;
>
> /*
> * Now, starting in cacheline 2, the exception save areas
> @@ -101,8 +102,6 @@ struct paca_struct {
> u64 user_time; /* accumulated usermode TB ticks */
> u64 system_time; /* accumulated system TB ticks */
> u64 startpurr; /* PURR/TB value snapshot */
> -
> - struct slb_shadow *slb_shadow_ptr;
> };
>
> extern struct paca_struct paca[];
> --
> 1.5.0.3
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs•org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>
prev parent reply other threads:[~2007-03-16 17:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-16 6:47 [POWERPC] minor paca optimisation Stephen Rothwell
2007-03-16 17:18 ` Michael Neuling [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=12742.1174065489@neuling.org \
--to=mikey@neuling$(echo .)org \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=paulus@samba$(echo .)org \
--cc=sfr@canb$(echo .)auug.org.au \
/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