diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-02-25 19:11:25 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-03-13 16:35:17 -0400 |
commit | 34e46258cb9f53b41e8ffd2e9acd58e0cf64b158 (patch) | |
tree | 1cf7f8d94a825678769b186849a6f41fa6765cf9 /net/tipc/node.c | |
parent | 672d99e19a12b703c9e2d71ead8fb8b8a85a3886 (diff) | |
download | op-kernel-dev-34e46258cb9f53b41e8ffd2e9acd58e0cf64b158.zip op-kernel-dev-34e46258cb9f53b41e8ffd2e9acd58e0cf64b158.tar.gz |
tipc: manually inline net_start/stop, make assoc. vars static
Relocates network-related variables into the subsystem files where
they are now primarily used (following the recent rework of TIPC's
node table), and converts globals into locals where possible. Changes
the initialization of tipc_num_links from run-time to compile-time,
and eliminates the net_start routine that becomes empty as a result.
Also eliminates the corresponding net_stop routine by moving its
(trivial) content into the one location that called the routine.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r-- | net/tipc/node.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 22aeb2b..66099cb 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c @@ -47,6 +47,8 @@ static DEFINE_SPINLOCK(node_create_lock); static struct hlist_head node_htable[NODE_HTABLE_SIZE]; LIST_HEAD(tipc_node_list); static u32 tipc_num_nodes; + +static atomic_t tipc_num_links = ATOMIC_INIT(0); u32 tipc_own_tag; /** |