diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2024-01-26 00:57:54 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-30 13:49:04 +0300 |
commit | 803bef817807d2d36c930dada20c96fffae0dd19 (patch) | |
tree | f4340840dc5210c2493c8b0123df72b898ffafbf /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1abefdca85e8664374f53c7bc80d5f5f827ce711 (diff) | |
download | linux-803bef817807d2d36c930dada20c96fffae0dd19.tar.xz |
ice: factor out ice_ptp_rebuild_owner()
The ice_ptp_reset() function uses a goto to skip past clock owner
operations if performing a PF reset or if the device is not the clock
owner. This is a bit confusing. Factor this out into
ice_ptp_rebuild_owner() instead.
The ice_ptp_reset() function is called by ice_rebuild() to restore PTP
functionality after a device reset. Follow the convention set by the
ice_main.c file and rename this function to ice_ptp_rebuild(), in the
same way that we have ice_prepare_for_reset() and
ice_ptp_prepare_for_reset().
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions