--- a/master/master.c Fri May 07 15:16:14 2010 +0200
+++ b/master/master.c Fri May 07 15:25:55 2010 +0200
@@ -144,10 +144,14 @@
master->slaves = NULL;
master->slave_count = 0;
-
+
INIT_LIST_HEAD(&master->configs);
master->app_time = 0ULL;
+#ifdef EC_HAVE_CYCLES
+ master->dc_cycles_app_time = 0;
+#endif
+ master->dc_jiffies_app_time = 0;
master->app_start_time = 0ULL;
master->has_start_time = 0;
@@ -2381,6 +2385,10 @@
void ecrt_master_application_time(ec_master_t *master, uint64_t app_time)
{
master->app_time = app_time;
+#ifdef EC_HAVE_CYCLES
+ master->dc_cycles_app_time = get_cycles();
+#endif
+ master->dc_jiffies_app_time = jiffies;
if (unlikely(!master->has_start_time)) {
master->app_start_time = app_time;