diff options
author | zapp-brannigan | 2020-03-12 18:39:53 +0100 |
---|---|---|
committer | zapp-brannigan | 2020-03-12 18:39:53 +0100 |
commit | 240662729a8a0cae5bd29f14e10d133da2d446c9 (patch) | |
tree | 903501e589a3d527386453086050e4728219ce05 /config_hz.patch | |
parent | 2553ab57209cdc17f92c5da5b8224a70bf18e0a6 (diff) | |
download | aur-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.patch | 13 |
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", |