Re: [PATCH 2/3] powerpc: Split mmu_context handling

2008-12-04 Thread Benjamin Herrenschmidt
On Thu, 2008-12-04 at 07:46 -0500, Josh Boyer wrote: > ..but I couldn't let this one go. Totally incorrect comments here given > that the file is _for_ 8xx and 4xx. I suspect an errant copy/paste :). Or rather blame "cp" :-) I just duplicated mmu_context_32.c and modified both versions differentl

Re: [PATCH 2/3] powerpc: Split mmu_context handling

2008-12-04 Thread Josh Boyer
On Thu, 04 Dec 2008 16:41:48 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: Stephen had a bunch of comments as well, so I'll spare you those again... > Index: linux-work/arch/powerpc/mm/mmu_context_nohash.c > === > --- /dev/

Re: [PATCH 2/3] powerpc: Split mmu_context handling

2008-12-03 Thread Benjamin Herrenschmidt
On Thu, 2008-12-04 at 17:17 +1100, Stephen Rothwell wrote: > Please don't make unrelated trivial fixups - they just make us look hard > to see if something really changed. Ooops... caught :-) > > -/* > > - * switch_mm is the entry point called from the architecture independent > > +/* switch_mm

Re: [PATCH 2/3] powerpc: Split mmu_context handling

2008-12-03 Thread Stephen Rothwell
Hi Ben, On Thu, 04 Dec 2008 16:41:48 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > --- linux-work.orig/arch/powerpc/include/asm/bug.h2008-12-03 > 13:50:01.0 +1100 > +++ linux-work/arch/powerpc/include/asm/bug.h 2008-12-03 13:50:18.0 > +1100 > @@ -26,7 +26,7 @@

[PATCH 2/3] powerpc: Split mmu_context handling

2008-12-03 Thread Benjamin Herrenschmidt
This splits the mmu_context handling between 32-bit hash based processors, 64-bit hash based processors and everybody else. This is preliminary work for adding SMP support for BookE processors. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/include/asm/bug.h