Closed antonellocaroli closed 2 years ago
yes
@hamadmarri thanks!!!
PS: isn't there a version for the 5.10.x kernel?
@antonellocaroli
Currently it should be better, if you add these values also to the choices also, example you can see here:
There, added your values.
https://github.com/ptr1337/kernel-patches/blob/master/5.15/TT/0001-high-hz.patch
@ptr1337 thanks! probably also need to be changed?
diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h
index 5e13f80..b427f8a 100644
--- a/include/linux/jiffies.h
+++ b/include/linux/jiffies.h
@@ -40,6 +40,14 @@
# define SHIFT_HZ 12
#elif HZ >= 6144 && HZ < 12288
# define SHIFT_HZ 13
+#elif HZ >= 12288 && HZ < 24576
+# define SHIFT_HZ 14
+#elif HZ >= 24576 && HZ < 49152
+# define SHIFT_HZ 15
+#elif HZ >= 49152 && HZ < 98304
+# define SHIFT_HZ 16
+#elif HZ >= 98304 && HZ < 196608
+# define SHIFT_HZ 17
#else
# error Invalid value of HZ.
#endif
@antonellocaroli
Yes, should also be added. But i dont think that that high values would help anymore. Already at 10k+ the kernel/your hardware wont be able to handle this. But you can test it out and show your results :)
Hi,
if I want to add more frequencies, do I just have to edit this?
in for example