Commit dece8203 authored by Adam Wujek's avatar Adam Wujek

lib/latency: fix build

The code for latency was commented out
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 6c9e7863
......@@ -24,7 +24,6 @@ static int lat_verbose = 0;
static int lat_verbose = 1;
#endif
#if 0
static unsigned long prios[] = {7, 6, 0}; /* the prio for the 3 frames */
static int ltest_fake_delay_ns;
......@@ -306,5 +305,3 @@ DEFINE_WRC_COMMAND(ltest) = {
.name = "ltest",
.exec = cmd_ltest,
};
#endif
\ No newline at end of file
/*
* This work is part of the White Rabbit project
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __LATENCY_H__
#define __LATENCY_H__
void latency_init(void);
int latency_poll(void);
#endif /* __LATENCY_H__ */
......@@ -63,6 +63,11 @@
#define HAS_CMD_CONFIG 0
#endif
#ifdef CONFIG_LATENCY_PROBE
#define HAS_LATENCY_PROBE 1
#else
#define HAS_LATENCY_PROBE 0
#endif
static char cmd_buf[SH_MAX_LINE_LEN + 1];
......@@ -397,6 +402,8 @@ void shell_register_commands(void)
REGISTER_WRC_COMMAND(gui);
REGISTER_WRC_COMMAND(help);
REGISTER_WRC_COMMAND(init);
if (HAS_LATENCY_PROBE)
REGISTER_WRC_COMMAND(ltest);
if (HAS_IP)
REGISTER_WRC_COMMAND(ip);
if (HAS_CMD_LEAPSEC)
......
......@@ -48,7 +48,7 @@
#endif
#ifdef CONFIG_LATENCY_PROBE
//#include "lib/latency.h"
#include "lib/latency.h"
#endif
#ifdef CONFIG_LLDP
......@@ -248,12 +248,8 @@ static void create_tasks(void)
#endif
#ifdef CONFIG_LATENCY_PROBE
#if 0
extern void latency_init(void);
extern void latency_poll(void);
wrc_task_create( "latency-probe", latency_init, latency_poll );
#endif
#endif
#ifdef CONFIG_LLDP
t = wrc_task_create( "lldp", lldp_init, lldp_poll );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment