[PATCH] cacheline align rt_cache_stat struct

From: Dipankar Sarma (dipankar@in.ibm.com)
Date: Tue Oct 02 2001 - 08:28:16 EST


The per-cpu rt_cache_stat structure should be padded to cacheline
to avoid sharing of cachelines between different CPUs. Here is a patch
to do that for SMP kernels.

Thanks
Dipankar

-- 
Dipankar Sarma  <dipankar@in.ibm.com> Project: http://lse.sourceforge.net
Linux Technology Center, IBM Software Lab, Bangalore, India.

diff -urN linux-2.4.10/include/net/route.h linux-2.4.10+rt/include/net/route.h --- linux-2.4.10/include/net/route.h Thu Sep 27 11:59:45 2001 +++ linux-2.4.10+rt/include/net/route.h Tue Oct 2 18:34:45 2001 @@ -105,7 +105,7 @@ unsigned int out_hit; unsigned int out_slow_tot; unsigned int out_slow_mc; -}; +} ____cacheline_aligned_in_smp; extern struct ip_rt_acct *ip_rt_acct;

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:21 EST