From 56bae3425ce425d5f0424887caa77d95a88b9803 Mon Sep 17 00:00:00 2001 From: hunt Date: Sun, 18 Mar 2007 18:19:26 +0000 Subject: 2007-03-18 Martin Hunt * staprun.h (VERSION_CMD): Command to use for version check. Changes to support runtime decision on new or old transport. * mainloop.c (init_staprun): Check the kernel version at runtime instead of at compile time. (cleanup_and_exit): Call the correct relayfs close function. (stp_main_loop): Call the correct relayfs init function. * relay.c: Remove ifdef wrapper. File is always compiled and used if the kernel version is appropriate. * relay_old.c: Ditto. --- runtime/staprun/relay.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'runtime/staprun/relay.c') diff --git a/runtime/staprun/relay.c b/runtime/staprun/relay.c index 98f064b6..6d505a22 100644 --- a/runtime/staprun/relay.c +++ b/runtime/staprun/relay.c @@ -12,8 +12,6 @@ #include "staprun.h" -#ifndef STP_OLD_TRANSPORT - int out_fd[NR_CPUS]; static pthread_t reader[NR_CPUS]; static int relay_fd[NR_CPUS]; @@ -186,4 +184,3 @@ void close_relayfs(void) dbug("closed files\n"); } -#endif /* !STP_OLD_TRANSPORT */ -- cgit