]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] hpet: allow non-power-of-two frequencies
authorClemens Ladisch <clemens@ladisch.de>
Sun, 30 Oct 2005 23:03:33 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:29 +0000 (17:37 -0800)
It was only the RTC hardware that restricted interrupt frequencies to a power
of two.  There is no reason to take over this restriction into the HPET
driver, so remove the offending check.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Acked-by: Bob Picco <bob.picco@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/hpet.c

index e3c7c0096e17c0dd7f93a40cf36fe9b4368d9122..85d39ff286c4d8968bfcf1b5e0a82310c05f4246 100644 (file)
@@ -519,7 +519,7 @@ hpet_ioctl_common(struct hpet_dev *devp, int cmd, unsigned long arg, int kernel)
                        break;
                }
 
-               if (!arg || (arg & (arg - 1))) {
+               if (!arg) {
                        err = -EINVAL;
                        break;
                }