#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/time.h>
-#include <linux/jiffies.h>
+
/************************************************************************/
/* Useful structures and definitions */
del_timer(&strip_info->idle_timer);
- if (time_after(jiffies, strip_info->pps_timer + HZ)) {
+ if (jiffies - strip_info->pps_timer > HZ) {
unsigned long t = jiffies - strip_info->pps_timer;
unsigned long rx_pps_count = (strip_info->rx_pps_count * HZ * 8 + t / 2) / t;
unsigned long tx_pps_count = (strip_info->tx_pps_count * HZ * 8 + t / 2) / t;