summarylogtreecommitdiffstats
path: root/config_hz.patch
diff options
context:
space:
mode:
authorzapp-brannigan2020-03-12 18:39:53 +0100
committerzapp-brannigan2020-03-12 18:39:53 +0100
commit240662729a8a0cae5bd29f14e10d133da2d446c9 (patch)
tree903501e589a3d527386453086050e4728219ce05 /config_hz.patch
parent2553ab57209cdc17f92c5da5b8224a70bf18e0a6 (diff)
downloadaur-240662729a8a0cae5bd29f14e10d133da2d446c9.tar.gz
[PATCH] Don't fail compiling kvdo on 'CONFIG_HZ=300' kernels
Diffstat (limited to 'config_hz.patch')
-rw-r--r--config_hz.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/config_hz.patch b/config_hz.patch
new file mode 100644
index 000000000000..7f88b680322c
--- /dev/null
+++ b/config_hz.patch
@@ -0,0 +1,13 @@
+--- vdo/kernel/histogram.c 2020-01-21 02:56:37.000000000 +0100
++++ vdo/kernel/histogram_arch.c 2020-03-12 10:59:26.296614253 +0100
+@@ -597,7 +597,10 @@
+ * milliseconds, and the unit conversion code needs updating.
+ */
+ STATIC_ASSERT(HZ <= MSEC_PER_SEC);
++ /*
++ * Make it work on stock arch linux kernel which has "CONFIG_HZ=300" set
+ STATIC_ASSERT((MSEC_PER_SEC % HZ) == 0);
++ */
+ return makeLogarithmicHistogramWithConversionFactor(parent, name, initLabel,
+ countedItems,
+ metric, "milliseconds",