diff options
author | Avraham Stern <[email protected]> | 2023-03-20 12:33:08 +0200 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2023-03-22 13:16:35 +0100 |
commit | e86103394474b0c15eca4bb9ed678f6e9ab5d004 (patch) | |
tree | 44b6a24281726ba6a802e7e126a2cd82c07a693a /tools/perf/scripts/python/libxed.py | |
parent | a2f49f7d52a9e7d0dce8f090541a28192b7abd59 (diff) |
wifi: iwlwifi: mvm: select ptp cross timestamp from multiple reads
iwl_mvm_get_sync_time() reads the gp2 from the device and then
reads the system clock. Since the two reads are not done atomically,
unexpected delays may happen between the two reads (e.g. context
switch) which make it inaccurate.
In order to improve the accuracy of the cross timestamp, call
iwl_mvm_get_sync_time() multiple times in a loop and take the
result in which the difference between the two clock is the smallest.
Signed-off-by: Avraham Stern <[email protected]>
Signed-off-by: Gregory Greenman <[email protected]>
Link: https://lore.kernel.org/r/20230320122330.d9e6f8f8998a.I569939ec4ddf0c6c64c112e7d0c30583f5509d9a@changeid
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions