diff options
| author | Anton Vorontsov <cbouatmailru@gmail.com> | 2008-07-29 18:05:23 -0400 |
|---|---|---|
| committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2008-07-29 18:05:23 -0400 |
| commit | 9fec6060d9e48ed7db0dac0e16d0f0f0e615b7f6 (patch) | |
| tree | 74b41f31a08f6500ff3dfcf64ba21e2d9a8e87e5 /net/tipc/core.c | |
| parent | fece418418f51e92dd7e67e17c5e3fe5a28d3279 (diff) | |
| parent | 6e86841d05f371b5b9b86ce76c02aaee83352298 (diff) | |
Merge branch 'master' of /home/cbou/linux-2.6
Conflicts:
drivers/power/Kconfig
drivers/power/Makefile
Diffstat (limited to 'net/tipc/core.c')
| -rw-r--r-- | net/tipc/core.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c index 740aac5cdfb6..3256bd7d398f 100644 --- a/net/tipc/core.c +++ b/net/tipc/core.c | |||
| @@ -49,7 +49,7 @@ | |||
| 49 | #include "config.h" | 49 | #include "config.h" |
| 50 | 50 | ||
| 51 | 51 | ||
| 52 | #define TIPC_MOD_VER "1.6.3" | 52 | #define TIPC_MOD_VER "1.6.4" |
| 53 | 53 | ||
| 54 | #ifndef CONFIG_TIPC_ZONES | 54 | #ifndef CONFIG_TIPC_ZONES |
| 55 | #define CONFIG_TIPC_ZONES 3 | 55 | #define CONFIG_TIPC_ZONES 3 |
| @@ -117,11 +117,11 @@ void tipc_core_stop_net(void) | |||
| 117 | * start_net - start TIPC networking sub-systems | 117 | * start_net - start TIPC networking sub-systems |
| 118 | */ | 118 | */ |
| 119 | 119 | ||
| 120 | int tipc_core_start_net(void) | 120 | int tipc_core_start_net(unsigned long addr) |
| 121 | { | 121 | { |
| 122 | int res; | 122 | int res; |
| 123 | 123 | ||
| 124 | if ((res = tipc_net_start()) || | 124 | if ((res = tipc_net_start(addr)) || |
| 125 | (res = tipc_eth_media_start())) { | 125 | (res = tipc_eth_media_start())) { |
| 126 | tipc_core_stop_net(); | 126 | tipc_core_stop_net(); |
| 127 | } | 127 | } |
| @@ -164,8 +164,7 @@ int tipc_core_start(void) | |||
| 164 | tipc_mode = TIPC_NODE_MODE; | 164 | tipc_mode = TIPC_NODE_MODE; |
| 165 | 165 | ||
| 166 | if ((res = tipc_handler_start()) || | 166 | if ((res = tipc_handler_start()) || |
| 167 | (res = tipc_ref_table_init(tipc_max_ports + tipc_max_subscriptions, | 167 | (res = tipc_ref_table_init(tipc_max_ports, tipc_random)) || |
| 168 | tipc_random)) || | ||
| 169 | (res = tipc_reg_start()) || | 168 | (res = tipc_reg_start()) || |
| 170 | (res = tipc_nametbl_init()) || | 169 | (res = tipc_nametbl_init()) || |
| 171 | (res = tipc_k_signal((Handler)tipc_subscr_start, 0)) || | 170 | (res = tipc_k_signal((Handler)tipc_subscr_start, 0)) || |
| @@ -182,7 +181,7 @@ static int __init tipc_init(void) | |||
| 182 | { | 181 | { |
| 183 | int res; | 182 | int res; |
| 184 | 183 | ||
| 185 | tipc_log_reinit(CONFIG_TIPC_LOG); | 184 | tipc_log_resize(CONFIG_TIPC_LOG); |
| 186 | info("Activated (version " TIPC_MOD_VER | 185 | info("Activated (version " TIPC_MOD_VER |
| 187 | " compiled " __DATE__ " " __TIME__ ")\n"); | 186 | " compiled " __DATE__ " " __TIME__ ")\n"); |
| 188 | 187 | ||
| @@ -209,7 +208,7 @@ static void __exit tipc_exit(void) | |||
| 209 | tipc_core_stop_net(); | 208 | tipc_core_stop_net(); |
| 210 | tipc_core_stop(); | 209 | tipc_core_stop(); |
| 211 | info("Deactivated\n"); | 210 | info("Deactivated\n"); |
| 212 | tipc_log_stop(); | 211 | tipc_log_resize(0); |
| 213 | } | 212 | } |
| 214 | 213 | ||
| 215 | module_init(tipc_init); | 214 | module_init(tipc_init); |
