mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
184c687387
Needed for Illumos #3582. This interface is supposed to support a variable-resolution timeout with nanosecond granularity. This implementation rounds up to microsecond resolution, as nanosecond- precision timing is rarely needed for real-world performance tuning and may incur unnecessary busy-waiting. usleep_range() is used if available, otherwise udelay() or msleep() are used depending on the length of the delay interval. Add flags from sys/callo.h as these are used to control the behavior of cv_timedwait_hires(). Specifically, CALLOUT_FLAG_ABSOLUTE Normally, the expiration passed to the timeout API functions is an expiration interval. If this flag is specified, then it is interpreted as the expiration time itself. CALLOUT_FLAG_ROUNDUP Roundup the expiration time to the next resolution boundary. If this flag is not specified, the expiration time is rounded down. References: https://www.illumos.org/issues/3582 illumos/illumos-gate@0689f76 Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #304
30 lines
968 B
Makefile
30 lines
968 B
Makefile
COMMON_H =
|
|
|
|
KERNEL_H = \
|
|
$(top_srcdir)/include/linux/bitops_compat.h \
|
|
$(top_srcdir)/include/linux/compiler_compat.h \
|
|
$(top_srcdir)/include/linux/delay_compat.h \
|
|
$(top_srcdir)/include/linux/file_compat.h \
|
|
$(top_srcdir)/include/linux/kallsyms_compat.h \
|
|
$(top_srcdir)/include/linux/list_compat.h \
|
|
$(top_srcdir)/include/linux/math64_compat.h \
|
|
$(top_srcdir)/include/linux/mm_compat.h \
|
|
$(top_srcdir)/include/linux/module_compat.h \
|
|
$(top_srcdir)/include/linux/mutex_compat.h \
|
|
$(top_srcdir)/include/linux/proc_compat.h \
|
|
$(top_srcdir)/include/linux/rwsem_compat.h \
|
|
$(top_srcdir)/include/linux/smp_compat.h \
|
|
$(top_srcdir)/include/linux/sysctl_compat.h \
|
|
$(top_srcdir)/include/linux/time_compat.h \
|
|
$(top_srcdir)/include/linux/uaccess_compat.h \
|
|
$(top_srcdir)/include/linux/zlib_compat.h
|
|
|
|
USER_H =
|
|
|
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
|
|
|
if CONFIG_KERNEL
|
|
kerneldir = /usr/src/spl-$(VERSION)/include/linux
|
|
kernel_HEADERS = $(KERNEL_H)
|
|
endif
|