android_kernel_sony_sdm845/drivers/ptp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nicolas Pitre d456240b4e UPSTREAM: posix-timers: Make them configurable
Some embedded systems have no use for them.  This removes about
25KB from the kernel binary size when configured out.

Corresponding syscalls are routed to a stub logging the attempt to
use those syscalls which should be enough of a clue if they were
disabled without proper consideration. They are: timer_create,
timer_gettime: timer_getoverrun, timer_settime, timer_delete,
clock_adjtime, setitimer, getitimer, alarm.

The clock_settime, clock_gettime, clock_getres and clock_nanosleep
syscalls are replaced by simple wrappers compatible with CLOCK_REALTIME,
CLOCK_MONOTONIC and CLOCK_BOOTTIME only which should cover the vast
majority of use cases with very little code.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <john.stultz@linaro.org>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Cc: Paul Bolle <pebolle@tiscali.nl>
Cc: linux-kbuild@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: Michal Marek <mmarek@suse.com>
Cc: Edward Cree <ecree@solarflare.com>
Link: http://lkml.kernel.org/r/1478841010-28605-7-git-send-email-nicolas.pitre@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:59:01 +07:00
..
Kconfig UPSTREAM: posix-timers: Make them configurable 2026-05-15 17:59:01 +07:00
Makefile
ptp_chardev.c ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl 2019-02-12 19:44:52 +01:00
ptp_clock.c ptp: free ptp device pin descriptors properly 2020-05-20 08:15:33 +02:00
ptp_ixp46x.c
ptp_pch.c ptp_pch: Load module automatically if ID matches 2021-10-17 10:05:39 +02:00
ptp_private.h ptp: fix the race between the release of ptp_clock and cdev 2020-05-20 08:15:32 +02:00
ptp_sysfs.c ptp: replace snprintf with sysfs_emit 2022-04-20 09:06:42 +02:00