net: remove initialization of static per-cpu variables
Subsystems (4)
PATCH 1/1 net: remove initialization of static per-cpu variables
From: Vegard Nossum <[email protected]>
Date: Thu, 12 Jun 2008 22:15:58 +0200
Subject: [PATCH] net: remove initialization of static per-cpu variables
Signed-off-by Vegard Nossum <[email protected]>
--- net/core/flow.c | 6 +++--- net/socket.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
net/core/flow.c +3 -3
@@ -39,7 +39,7 @@ atomic_t flow_cache_genid = ATOMIC_INIT(0);static u32 flow_hash_shift;#define flow_hash_size (1 << flow_hash_shift) -static DEFINE_PER_CPU(struct flow_cache_entry **, flow_tables) = { NULL }; +static DEFINE_PER_CPU(struct flow_cache_entry **, flow_tables);#define flow_table (cpu) (per_cpu(flow_tables, cpu))
@@ -52,7 +52,7 @@ struct flow_percpu_info {u32 hash_rnd;int count; }; -static DEFINE_PER_CPU(struct flow_percpu_info, flow_hash_info) = { 0 }; +static DEFINE_PER_CPU(struct flow_percpu_info, flow_hash_info);#define flow_hash_rnd_recalc (cpu) \ (per_cpu(flow_hash_info, cpu).hash_rnd_recalc)
@@ -69,7 +69,7 @@ struct flow_flush_info {atomic_t cpuleft;struct completion completion; }; -static DEFINE_PER_CPU(struct tasklet_struct, flow_flush_tasklets) = { NULL }; +static DEFINE_PER_CPU(struct tasklet_struct, flow_flush_tasklets);#define flow_flush_tasklet (cpu) (&per_cpu(flow_flush_tasklets, cpu))
net/socket.c +1 -1
@@ -151,7 +151,7 @@ static const struct net_proto_family *net_families[NPROTO] __read_mostly;* Statistics counters of the socket lists */ -static DEFINE_PER_CPU(int, sockets_in_use) = 0; +static DEFINE_PER_CPU(int, sockets_in_use);/* * Support routines.
Signature · 1 line
1.5.4.1
David Miller
maintainerFrom: Vegard Nossum <[email protected]>
Date: Thu, 12 Jun 2008 23:23:10 +0200
Quoted 6 lines
From: Vegard Nossum <[email protected]>
Date: Thu, 12 Jun 2008 22:15:58 +0200
Subject: [PATCH] net: remove initialization of static per-cpu variablesSigned-off-by Vegard Nossum <[email protected]>
Signed-off-by David S. Miller <[email protected]>