Re: [ PATCH ] - Avoid slow TLB purges on SGI Altix systems

From: Dean Roe <roe_at_sgi.com>
Date: 2005-10-28 04:31:04
On Thu, Oct 27, 2005 at 09:01:53AM -0700, Luck, Tony wrote:
> -	if (mm != current->active_mm) {
> -		/* this does happen, but perhaps it's not worth optimizing for? */
> -#ifdef CONFIG_SMP
> -		flush_tlb_all();
> -#else
> -		mm->context = 0;
> -#endif
> -		return;
> -	}
> 
> Your patch moves this secion of code up to ia64_global_tlb_purge(),
> but the new code that is added there doesn't include the UP case
> where mm->context is set to zero.
> 
> -Tony
> 

flush_tlb_range() only calls platform_global_tlb_purge() for CONFIG_SMP,
so there's no point in having that code in ia64_global_tlb_purge().

Dean

-- 
Dean Roe
Silicon Graphics, Inc.
roe@sgi.com
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Oct 28 04:31:57 2005

This archive was generated by hypermail 2.1.8 : 2005-10-28 04:32:03 EST