From: Pavel Machek Date: Fri, 25 Jan 2008 20:08:34 +0000 (+0100) Subject: timers: don't #error on higher HZ values X-Git-Tag: v2.6.25-rc1~1237^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e118adef232e637a8f091c1ded2fbf44fcf3ecc8;p=linux-2.6 timers: don't #error on higher HZ values For some crazy reason (trying to work around hw problem in i810) I wanted to use HZ around 4000. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar --- diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h index 8b080024bb..7ba9e47bf0 100644 --- a/include/linux/jiffies.h +++ b/include/linux/jiffies.h @@ -29,6 +29,12 @@ # 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