forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlx4: update mlx4_clock_read() to provide pre/post tstamps
The mlx4_clock_read() function, when called by cycle_counter->read(), previously only returned the raw cycle count. However, for PTP helpers like gettimex64(), which require pre- and post-timestamps, simply returning raw cycles is insufficient. It also needs to provide the necessary timestamps. This update modifies mlx4_clock_read() to return both the cycles and the required timestamps. Additionally, mlx4_en_read_clock() is now responsible for reading and updating the clock_cache. This allows another function, mlx4_en_read_clock_cache(), to act as the cycle reader for cycle_counter->read(), preserving the same interface. Signed-off-by: Mahesh Bandewar <[email protected]> Signed-off-by: NipaLocal <nipa@local>
- Loading branch information
Mahesh Bandewar
authored and
NipaLocal
committed
Oct 9, 2024
1 parent
de0c90e
commit 454f83f
Showing
4 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters