posix-clock: introduce posix_clock_context concept
authorXabier Marquiegui <reibax@gmail.com>
Wed, 11 Oct 2023 22:39:53 +0000 (00:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2023 19:07:52 +0000 (20:07 +0100)
commit60c6946675fc06dd2fd2b7a4b6fd1c1f046f1056
treebeb4c3c0bfba331be953fc0ef6a7e4d028e77e79
parent99620ea03327c5e73407f48a6994578f71951a87
posix-clock: introduce posix_clock_context concept

Add the necessary structure to support custom private-data per
posix-clock user.

The previous implementation of posix-clock assumed all file open
instances need access to the same clock structure on private_data.

The need for individual data structures per file open instance has been
identified when developing support for multiple timestamp event queue
users for ptp_clock.

Signed-off-by: Xabier Marquiegui <reibax@gmail.com>
Suggested-by: Richard Cochran <richardcochran@gmail.com>
Suggested-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_chardev.c
drivers/ptp/ptp_private.h
include/linux/posix-clock.h
kernel/time/posix-clock.c