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 <[EMAIL PROTECTED]> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
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 [EMAIL PROTECTED] 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 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/