[PATCH 3/3] powerpc: Rework context management for CPUs with no hash table

2008-12-03 Thread Benjamin Herrenschmidt
This reworks the context management code used by 4xx,8xx and freescale BookE. It adds support for SMP by implementing a concept of stale context map to lazily flush the TLB on processors where a context may have been invalidated. This also contains the ground work for generalizing such lazy TLB

Re: [PATCH 3/3] powerpc: Rework context management for CPUs with no hash table

2008-12-03 Thread Stephen Rothwell
Hi Ben, On Thu, 04 Dec 2008 16:41:53 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: +++ linux-work/arch/powerpc/mm/mmu_context_nohash.c 2008-12-04 15:18:46.0 +1100 + /* No more free contexts, let's try to steal one */ + if (nr_free_contexts == 0) { +#ifdef

Re: [PATCH 3/3] powerpc: Rework context management for CPUs with no hash table

2008-12-03 Thread Benjamin Herrenschmidt
On Thu, 2008-12-04 at 17:38 +1100, Stephen Rothwell wrote: Hi Ben, On Thu, 04 Dec 2008 16:41:53 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: +++ linux-work/arch/powerpc/mm/mmu_context_nohash.c 2008-12-04 15:18:46.0 +1100 + /* No more free contexts, let's try to