mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
pch_gbe: scale time stamps to nanoseconds
This patch fixes the helper functions that give the transmit and receive time stamps to return nanoseconds, instead of arbitrary clock ticks. [ RC - Rebased Takahiro's changes and wrote a commit message explaining the changes. ] Signed-off-by: Takahiro Shimizu <[email protected]> Signed-off-by: Richard Cochran <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5f568e5afe
commit
d50566c727
2 changed files with 2 additions and 4 deletions
|
|
@ -261,6 +261,7 @@ u64 pch_rx_snap_read(struct pci_dev *pdev)
|
|||
|
||||
ns = ((u64) hi) << 32;
|
||||
ns |= lo;
|
||||
ns <<= TICKS_NS_SHIFT;
|
||||
|
||||
return ns;
|
||||
}
|
||||
|
|
@ -277,6 +278,7 @@ u64 pch_tx_snap_read(struct pci_dev *pdev)
|
|||
|
||||
ns = ((u64) hi) << 32;
|
||||
ns |= lo;
|
||||
ns <<= TICKS_NS_SHIFT;
|
||||
|
||||
return ns;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue