Skip to contentSkip to conversation

don't #error on higher HZ values

PATCH Pavel Machek 1 participant 1 message Jan 3, 2008

lore
Share & tools
lore
#0 lore raw

For some crazy reason (trying to work around hw problem in i810) I wanted to use HZ around 4000.

Pavel

include/linux/jiffies.h +6 -0
index 8b08002..7ba9e47 100644
@@ -29,6 +29,12 @@ #elif HZ >= 384 && HZ < 768
 # define SHIFT_HZ	9
 #elif HZ >= 768 && HZ < 1536
 # define SHIFT_HZ	10
+#elif HZ >= 1536 && HZ < 3072
+# define SHIFT_HZ	11
+#elif HZ >= 3072 && HZ < 6144
+# define SHIFT_HZ	12
+#elif HZ >= 6144 && HZ < 12288
+# define SHIFT_HZ	13
 #else
 # error You lose.
 #endif
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html