]> git.pld-linux.org Git - packages/kernel.git/blobdiff - kernel-atmdd.patch
- 5.4.86
[packages/kernel.git] / kernel-atmdd.patch
index a380fce14311ed90460607e6f3afaa21ef90d097..6dbd1b4509fc48ce0384d99d7e5c0f4b52d57972 100644 (file)
@@ -30,7 +30,7 @@ diff -urN linux-2.4.25/drivers/atm/Kconfig linux-2.4.25-atmdd/drivers/atm/Kconfi
 diff -urN linux-2.4.25/drivers/atm/atmdd.c linux-2.4.25-atmdd/drivers/atm/atmdd.c
 --- linux-2.4.25/drivers/atm/atmdd.c   1970-01-01 01:00:00.000000000 +0100
 +++ linux-2.4.25-atmdd/drivers/atm/atmdd.c     2004-02-29 22:58:11.000000000 +0100
-@@ -0,0 +1,921 @@
+@@ -0,0 +1,920 @@
 +/*
 +#######################################################################
 +#
@@ -243,7 +243,6 @@ diff -urN linux-2.4.25/drivers/atm/atmdd.c linux-2.4.25-atmdd/drivers/atm/atmdd.
 +    while ((skb = myatmdd_rxq_dequeue(&priv->rxqueue, &pkt_len)))
 +    {
 +        struct sk_buff *newskb;
-+        struct timeval stamp;
 +
 +        /* Get a new skb to replace the one just consumed */
 +        if (!(newskb = dev_alloc_skb(AAL5_BUFLEN)))
@@ -275,8 +274,8 @@ diff -urN linux-2.4.25/drivers/atm/atmdd.c linux-2.4.25-atmdd/drivers/atm/atmdd.
 +            atomic_inc(&vcc->stats->rx);
 +
 +            /* add timestamp for upper layers to use */
-+          do_gettimeofday(&stamp);
-+          skb->tstamp = timeval_to_ktime(stamp);
++            ktime_t kt = ktime_get_real();
++            skb->tstamp = kt;
 +        
 +            /* Point socket buffer at the right VCC before giving to socket layer */
 +            ATM_SKB(skb)->vcc = vcc;
This page took 0.106277 seconds and 4 git commands to generate.