bpf-headers: support CONFIG_HZ=300
authorFelix Fietkau <nbd@nbd.name>
Fri, 25 Mar 2022 11:14:40 +0000 (12:14 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 1 Apr 2022 13:26:08 +0000 (15:26 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/bpf-headers/patches/100-support_hz_300.patch [new file with mode: 0644]

diff --git a/package/kernel/bpf-headers/patches/100-support_hz_300.patch b/package/kernel/bpf-headers/patches/100-support_hz_300.patch
new file mode 100644 (file)
index 0000000..9629958
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/arch/mips/Kconfig
++++ b/arch/mips/Kconfig
+@@ -2988,6 +2988,9 @@ choice
+       config HZ_256
+               bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
++      config HZ_300
++              bool "300 HZ" if SYS_SUPPORTS_ARBIT_HZ
++
+       config HZ_1000
+               bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
+@@ -3039,6 +3042,7 @@ config HZ
+       default 128 if HZ_128
+       default 250 if HZ_250
+       default 256 if HZ_256
++      default 300 if HZ_300
+       default 1000 if HZ_1000
+       default 1024 if HZ_1024