Re: [PATCH v2 2/2] powerpc: Copy only required pieces of the mm_context_t to the paca

2015-12-10 Thread Michael Ellerman
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/pac

[PATCH v2 2/2] powerpc: Copy only required pieces of the mm_context_t to the paca

2015-12-09 Thread Michael Neuling
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. This patch pulls in only the required bits from the mm_context_t to the paca and on context switch, copies onl