public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman•id.au>
To: Michael Neuling <mikey@neuling•org>, benh@kernel•crashing.org
Cc: linuxppc-dev@ozlabs•org, anton@samba•org, Cyril Bur <cyrilbur@gmail•com>
Subject: Re: [PATCH v2 2/2] powerpc: Copy only required pieces of the mm_context_t to the paca
Date: Thu, 10 Dec 2015 21:00:23 +1100	[thread overview]
Message-ID: <1449741623.7156.3.camel@ellerman.id.au> (raw)
In-Reply-To: <1449719211.29188.5.camel@neuling.org>

On Thu, 2015-12-10 at 14:46 +1100, Michael Neuling wrote:

> Currently we copy the whole mm_context_t to the paca but only access a
> few bits of it.  This is wasteful of space paca and also takes quite
> some time in the hot path of context switching.
> 
> diff --git a/arch/powerpc/include/asm/paca.h
> b/arch/powerpc/include/asm/paca.h
> index 1cc6e08..06cdaee 100644
> --- a/arch/powerpc/include/asm/paca.h
> +++ b/arch/powerpc/include/asm/paca.h
> @@ -199,7 +206,14 @@ struct paca_struct {
>  #ifdef CONFIG_PPC_BOOK3S
>  static inline void copy_mm_to_paca(mm_context_t *context)
>  {
> -	get_paca()->context = *context;
> +	get_paca()->context_id = context->id;
> +#ifdef CONFIG_PPC_MM_SLICES
> +	get_paca()->context_low_slices_psize = context
> ->low_slices_psize;

Patch is wrapped ^

And so on.

cheers

  reply	other threads:[~2015-12-10 10:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28  4:54 [PATCH 1/2] powerpc: Add function to copy mm_context_t to the paca Michael Neuling
2015-10-28  4:54 ` [PATCH 2/2] powerpc: Copy only required pieces of the " Michael Neuling
2015-12-09 12:17   ` Anton Blanchard
2015-12-10  3:46   ` [PATCH v2 " Michael Neuling
2015-12-10 10:00     ` Michael Ellerman [this message]
2015-12-10 22:34       ` [PATCH v3 " Michael Neuling
2016-01-11  9:14         ` [v3, " Michael Ellerman
2016-01-11  9:14 ` [1/2] powerpc: Add function to copy " Michael Ellerman

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=1449741623.7156.3.camel@ellerman.id.au \
    --to=mpe@ellerman$(echo .)id.au \
    --cc=anton@samba$(echo .)org \
    --cc=benh@kernel$(echo .)crashing.org \
    --cc=cyrilbur@gmail$(echo .)com \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=mikey@neuling$(echo .)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