Re: [patch 2/3] ptp: Use ktime_get_clock_ts64() for timestamping
From: John Stultz
Date: Fri Jun 27 2025 - 01:23:57 EST
On Thu, Jun 26, 2025 at 6:27 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> The inlined ptp_read_system_[pre|post]ts() switch cases expand to a copious
> amount of text in drivers, e.g. ~500 bytes in e1000e. Adding auxiliary
> clock support to the inlines would increase it further.
>
> Replace the inline switch case with a call to ktime_get_clock_ts64(), which
> reduces the code size in drivers and allows to access auxiliary clocks once
> they are enabled in the IOCTL parameter filter.
>
> No functional change.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Acked-by: John Stultz <jstultz@xxxxxxxxxx>