Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ATM] ENI: Convert to struct timeval to ktime_t.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

YOSHIFUJI Hideaki and committed by
David S. Miller
8570419f fc910a27

+3 -3
+2 -2
drivers/atm/eni.c
··· 536 536 return 0; 537 537 } 538 538 skb_put(skb,length); 539 - skb_set_timestamp(skb, &eni_vcc->timestamp); 539 + skb->tstamp = eni_vcc->timestamp; 540 540 DPRINTK("got len %ld\n",length); 541 541 if (do_rx_dma(vcc,skb,1,length >> 2,length >> 2)) return 1; 542 542 eni_vcc->rxing++; ··· 701 701 DPRINTK("Grr, servicing VCC %ld twice\n",vci); 702 702 continue; 703 703 } 704 - do_gettimeofday(&ENI_VCC(vcc)->timestamp); 704 + ENI_VCC(vcc)->timestamp = ktime_get_real(); 705 705 ENI_VCC(vcc)->next = NULL; 706 706 if (vcc->qos.rxtp.traffic_class == ATM_CBR) { 707 707 if (eni_dev->fast)
+1 -1
drivers/atm/eni.h
··· 59 59 int rxing; /* number of pending PDUs */ 60 60 int servicing; /* number of waiting VCs (0 or 1) */ 61 61 int txing; /* number of pending TX bytes */ 62 - struct timeval timestamp; /* for RX timing */ 62 + ktime_t timestamp; /* for RX timing */ 63 63 struct atm_vcc *next; /* next pending RX */ 64 64 struct sk_buff *last; /* last PDU being DMAed (used to carry 65 65 discard information) */