* don't #error on higher HZ values
@ 2008-01-03 11:08 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2008-01-03 11:08 UTC (permalink / raw)
To: kernel list, Andrew Morton
For some crazy reason (trying to work around hw problem in i810) I
wanted to use HZ around 4000.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Pavel
diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h
index 8b08002..7ba9e47 100644
--- a/include/linux/jiffies.h
+++ b/include/linux/jiffies.h
@@ -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
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-03 11:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-03 11:08 don't #error on higher HZ values Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®