equal
deleted
inserted
replaced
2373 /*****************************************************************************/ |
2373 /*****************************************************************************/ |
2374 |
2374 |
2375 void ecrt_master_application_time(ec_master_t *master, uint64_t app_time) |
2375 void ecrt_master_application_time(ec_master_t *master, uint64_t app_time) |
2376 { |
2376 { |
2377 master->app_time = app_time; |
2377 master->app_time = app_time; |
2378 #ifdef EC_HAVE_CYCLES |
|
2379 master->dc_cycles_app_time = get_cycles(); |
|
2380 #endif |
|
2381 master->dc_jiffies_app_time = jiffies; |
|
2382 |
2378 |
2383 if (unlikely(!master->has_app_time)) { |
2379 if (unlikely(!master->has_app_time)) { |
2384 EC_MASTER_DBG(master, 1, "set application start time = %llu\n",app_time); |
2380 EC_MASTER_DBG(master, 1, "set application start time = %llu\n",app_time); |
2385 master->app_start_time = app_time; |
2381 master->app_start_time = app_time; |
|
2382 #ifdef EC_HAVE_CYCLES |
|
2383 master->dc_cycles_app_time = get_cycles(); |
|
2384 #endif |
|
2385 master->dc_jiffies_app_time = jiffies; |
2386 master->has_app_time = 1; |
2386 master->has_app_time = 1; |
2387 } |
2387 } |
2388 } |
2388 } |
2389 |
2389 |
2390 /*****************************************************************************/ |
2390 /*****************************************************************************/ |