]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
RT-Linux timestamps has to be done different way
authorwentasah <wentasah>
Mon, 4 Oct 2004 10:39:44 +0000 (10:39 +0000)
committerwentasah <wentasah>
Mon, 4 Oct 2004 10:39:44 +0000 (10:39 +0000)
lincan/include/can_sysdep.h

index 50a87a2c37e6e3259584191a5a675e18d02e315a..6061542844165d6dbc8e22c0e3587c8f2d12d4bd 100644 (file)
 
 #define can_printk                 printk
 
 
 #define can_printk                 printk
 
+/* CAN message timestamp source, it is called from interrupt context */
+#define can_gettimeofday do_gettimeofday
+
 #else /*CAN_WITH_RTL*/
 
 #define can_spinlock_t             rtl_spinlock_t
 #else /*CAN_WITH_RTL*/
 
 #define can_spinlock_t             rtl_spinlock_t
 
 extern can_spinlock_t can_irq_manipulation_lock;
 
 
 extern can_spinlock_t can_irq_manipulation_lock;
 
-#endif /*CAN_WITH_RTL*/
-
 /* CAN message timestamp source, it is called from interrupt context */
 /* CAN message timestamp source, it is called from interrupt context */
-#define can_gettimeofday do_gettimeofday
+#define can_gettimeofday(ptr)      do { ;} while(0)
+
+#endif /*CAN_WITH_RTL*/
 
 #endif /*_CAN_SYSDEP_H*/
 
 #endif /*_CAN_SYSDEP_H*/