Skip to content

Commit

Permalink
tipc: purge signal handler infrastructure
Browse files Browse the repository at this point in the history
In the previous commits of this series, we removed all asynchronous
actions which were based on the tasklet handler - "tipc_k_signal()".

So the moment has now come when we can completely remove the tasklet
handler infrastructure. That is done with this commit.

Signed-off-by: Ying Xue <[email protected]>
Reviewed-by: Erik Hugne <[email protected]>
Reviewed-by: Jon Maloy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ying-xue authored and davem330 committed May 5, 2014
1 parent 3f5a12b commit 52ff872
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 147 deletions.
2 changes: 1 addition & 1 deletion net/tipc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
obj-$(CONFIG_TIPC) := tipc.o

tipc-y += addr.o bcast.o bearer.o config.o \
core.o handler.o link.o discover.o msg.o \
core.o link.o discover.o msg.o \
name_distr.o subscr.o name_table.o net.o \
netlink.o node.o node_subscr.o port.o ref.o \
socket.o log.o eth_media.o server.o
Expand Down
7 changes: 0 additions & 7 deletions net/tipc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ struct sk_buff *tipc_buf_acquire(u32 size)
*/
static void tipc_core_stop(void)
{
tipc_handler_stop();
tipc_net_stop();
tipc_bearer_cleanup();
tipc_netlink_stop();
Expand All @@ -100,10 +99,6 @@ static int tipc_core_start(void)

get_random_bytes(&tipc_random, sizeof(tipc_random));

err = tipc_handler_start();
if (err)
goto out_handler;

err = tipc_ref_table_init(tipc_max_ports, tipc_random);
if (err)
goto out_reftbl;
Expand Down Expand Up @@ -146,8 +141,6 @@ static int tipc_core_start(void)
out_nametbl:
tipc_ref_table_stop();
out_reftbl:
tipc_handler_stop();
out_handler:
return err;
}

Expand Down
6 changes: 1 addition & 5 deletions net/tipc/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ extern int tipc_random __read_mostly;
/*
* Routines available to privileged subsystems
*/
int tipc_handler_start(void);
void tipc_handler_stop(void);
int tipc_netlink_start(void);
void tipc_netlink_stop(void);
int tipc_socket_init(void);
Expand All @@ -109,12 +107,10 @@ void tipc_unregister_sysctl(void);
#endif

/*
* TIPC timer and signal code
* TIPC timer code
*/
typedef void (*Handler) (unsigned long);

u32 tipc_k_signal(Handler routine, unsigned long argument);

/**
* k_init_timer - initialize a timer
* @timer: pointer to timer structure
Expand Down
134 changes: 0 additions & 134 deletions net/tipc/handler.c

This file was deleted.

0 comments on commit 52ff872

Please sign in to comment.