Re: [patch 3/3] ptp: Enable auxiliary clocks for PTP_SYS_OFFSET_EXTENDED
From: Thomas Gleixner
Date: Tue Jul 01 2025 - 09:02:06 EST
On Thu, Jun 26 2025 at 15:27, Thomas Gleixner wrote:
> + switch (extoff->clockid) {
> + case CLOCK_REALTIME:
> + case CLOCK_MONOTONIC:
> + case CLOCK_MONOTONIC_RAW:
> + case CLOCK_AUX ... CLOCK_AUX_LAST:
> + break;
While trying to solve the merge logistics problem I noticed that this
should be:
switch (extoff->clockid) {
case CLOCK_REALTIME:
case CLOCK_MONOTONIC:
case CLOCK_MONOTONIC_RAW:
break;
case CLOCK_AUX ... CLOCK_AUX_LAST:
if (IS_ENABLED(CONFIG_POSIX_AUX_CLOCKS))
break;
fallthrough;
obviously as there is no point in going all the way down into the time
stamping code to figure out that this is disabled.
I blame it all on the heat wave of course :)