mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
timekeeping: Add support for AUX clock cross timestamping
Now that all prerequisites are in place add the final support for AUX clocks in get_device_system_crosststamp(), which enables the PTP layer to support hardware cross timestamps with a new IOTCL. Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Arthur Kiyanovski <[email protected]> Reviewed-by: David Woodhouse <[email protected]> Reviewed-by: Thomas Weißschuh <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Link: https://patch.msgid.link/[email protected]
This commit is contained in:
@@ -1517,6 +1517,12 @@ int get_device_system_crosststamp(int (*get_time_fn)
|
||||
tkd = &tk_core;
|
||||
offs = &tk_core.timekeeper.offs_real;
|
||||
break;
|
||||
case CLOCK_AUX ... CLOCK_AUX_LAST:
|
||||
tkd = aux_get_tk_data(xtstamp->clock_id);
|
||||
if (!tkd)
|
||||
return -ENODEV;
|
||||
offs = &tkd->timekeeper.offs_aux;
|
||||
break;
|
||||
default:
|
||||
WARN_ON_ONCE(1);
|
||||
return -ENODEV;
|
||||
|
||||
Reference in New Issue
Block a user