[etherlab-dev] Master Doesn't compile without EC_HAVE_CYCLES

Henry Bausley hbausley at deltatau.com
Mon Nov 29 22:11:57 CET 2010


The master doesn't compile fsm_master.c if you don't have EC_HAVE_CYCLES

should dc_jiffies_app_time have been dc_jiffies_app_start_time ?

#ifdef EC_HAVE_CYCLES
	correction =
            (datagram->cycles_sent -
slave->master->dc_cycles_app_start_time)
			* 1000000LL;
	do_div(correction,cpu_khz);
#else
	correction =
                        // (u64)
((datagram->jiffies_sent-slave->master->dc_jiffies_app_time) * 1000 /
HZ)
			(u64)
((datagram->jiffies_sent-slave->master->dc_jiffies_app_start_time) *
1000 / HZ)
			* 1000000;
#endif


**********************************************************
Outbound scan for Spam or Virus by Barracuda at Delta Tau
**********************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20101129/bf8c9166/attachment.htm>


More information about the etherlab-dev mailing list