Here's a simple patch to change sockets_in_use to make use of per-cpu areas. I have couple of questions though... 1. Was this var made per-cpu just to avoid atomic_t or locking or are there real lif
-static union { - int counter; - char __pad[SMP_CACHE_BYTES]; -} sockets_in_use[NR_CPUS] __cacheline_aligned = {{0}}; +static DEFINE_PER_CPU(int, sockets_in_use); You have to provide an explicit ini
I wonder if "some platforms with older GCC's" will ever have these issues resolved... I still don't have gcc-3.2.1 working properly on sparc64. I hope to have it working soon, but this does mean tha
From: Ravikiran G Thirumalai <kiran@xxxxxxxxxx> Date: Tue, 24 Dec 2002 12:18:52 +0530 Ok, here's the modified patch... Ok I'll apply this when I get back from vacation in the new year.
Hi, Here's a simple patch to change sockets_in_use to make use of per-cpu areas. I have couple of questions though... 1. Was this var made per-cpu just to avoid atomic_t or locking or are there real
-static union { - int counter; - char __pad[SMP_CACHE_BYTES]; -} sockets_in_use[NR_CPUS] __cacheline_aligned = {{0}}; +static DEFINE_PER_CPU(int, sockets_in_use); You have to provide an explicit ini
I wonder if "some platforms with older GCC's" will ever have these issues resolved... I still don't have gcc-3.2.1 working properly on sparc64. I hope to have it working soon, but this does mean tha
From: Ravikiran G Thirumalai <kiran@xxxxxxxxxx> Date: Tue, 24 Dec 2002 12:18:52 +0530 Ok, here's the modified patch... Ok I'll apply this when I get back from vacation in the new year.