Added version depended code for older Kernels.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@540
030b6a49-0b11-0410-94ab-
b0dab22257f2
stattimer.function = can_stat_update;
stattimer.data = 0;
/* update every second */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
stattimer.expires = round_jiffies(jiffies + HZ);
+#else
+ stattimer.expires = jiffies + HZ;
+#endif
/* start statistics timer */
add_timer(&stattimer);
} else
stats.matches_delta = 0;
/* restart timer (one second) */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
stattimer.expires = round_jiffies(jiffies + HZ);
+#else
+ stattimer.expires = jiffies + HZ;
+#endif
add_timer(&stattimer);
}