Only serialize native-deb* targets
[zfs.git] / contrib / intel_qat / patch / 0001-timespec.diff
blob04fb053e1f8c26ed276ce507244cf8e2bfcca1e1
1 This patch attempts to expose timespec and getnstimeofday which were
2 explicitly hidden in the 5.6 kernel with the introduction of the
3 following commits:
5 git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c766d1472c70d25ad475cf56042af1652e792b23
6 git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=412c53a680a97cb1ae2c0ab60230e193bee86387
8 Code received from users@dpdk.org, issue tracked under QATE-59888.
10 ---
11 diff --git a/quickassist/lookaside/access_layer/src/sample_code/performance/framework/linux/kernel_space/cpa_sample_code_utils.c b/quickassist/lookaside/access_layer/src/sample_code/performance/framework/linux/kernel_space/cpa_sample_code_utils.c
12 index 4639834..523e376 100644
13 --- a/quickassist/lookaside/access_layer/src/sample_code/performance/framework/linux/kernel_space/cpa_sample_code_utils.c
14 +++ b/quickassist/lookaside/access_layer/src/sample_code/performance/framework/linux/kernel_space/cpa_sample_code_utils.c
15 @@ -107,6 +107,8 @@ atomic_t arrived;
16 extern struct device perf_device;
17 #endif
19 +#define timespec timespec64
20 +#define getnstimeofday ktime_get_real_ts64
22 /* Define a number for timeout */
23 #define SAMPLE_CODE_MAX_LONG (0x7FFFFFFF)
24 diff --git a/quickassist/qat/compat/qat_compat.h b/quickassist/qat/compat/qat_compat.h
25 index 2a02eaf..3515092 100644
26 --- a/quickassist/qat/compat/qat_compat.h
27 +++ b/quickassist/qat/compat/qat_compat.h
28 @@ -466,4 +466,7 @@ static inline void pci_ignore_hotplug(struct pci_dev *dev)
29 #if (RHEL_RELEASE_CODE && RHEL_RELEASE_VERSION(7, 3) <= RHEL_RELEASE_CODE)
30 #define QAT_KPT_CAP_DISCOVERY
31 #endif
33 +#define timespec timespec64
34 +#define getnstimeofday ktime_get_real_ts64
35 #endif /* _QAT_COMPAT_H_ */