}
static int igb_ptp_gettime64_82576(struct ptp_clock_info *ptp,
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
struct timespec *ts64)
+#else
+ struct timespec64 *ts64)
}
static int igb_ptp_gettime64_i210(struct ptp_clock_info *ptp,
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
struct timespec *ts64)
+#else
+ struct timespec64 *ts64)
#ifdef HAVE_PTP_CLOCK_INFO_GETTIME64
static int igb_ptp_settime64_82576(struct ptp_clock_info *ptp,
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
const struct timespec *ts64)
+#else
+ const struct timespec64 *ts64)
#endif
static int igb_ptp_settime64_i210(struct ptp_clock_info *ptp,
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
const struct timespec *ts64)
+#else
+ const struct timespec64 *ts64)
{
struct igb_adapter *igb =
container_of(work, struct igb_adapter, ptp_overflow_work.work);
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
struct timespec ts;
+#else
+ struct timespec64 ts;
/* Initialize the clock and overflow work for devices that need it. */
if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) {
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
struct timespec ts = ktime_to_timespec(ktime_get_real());
+#else
+ struct timespec64 ts = ktime_to_timespec64(ktime_get_real());
/* Re-initialize the timer. */
if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) {
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
struct timespec ts = ktime_to_timespec(ktime_get_real());
+#else
+ struct timespec64 ts = ktime_to_timespec64(ktime_get_real());