aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-10-30 18:03:33 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-30 20:37:29 -0500
commit189e2dd1376c1eb2f3a717a15f1ed8c7d0b3811a (patch)
treeb574e02e9d6d464c74fd0ef2ff960b511546636b /drivers
parent3f992e1bb7eab7b7af2b9ea46d2b80b1fed84845 (diff)
[PATCH] hpet: allow non-power-of-two frequencies
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/hpet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index e3c7c0096e17..85d39ff286c4 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -519,7 +519,7 @@ hpet_ioctl_common(struct hpet_dev *devp, int cmd, unsigned long arg, int kernel)
519 break; 519 break;
520 } 520 }
521 521
522 if (!arg || (arg & (arg - 1))) { 522 if (!arg) {
523 err = -EINVAL; 523 err = -EINVAL;
524 break; 524 break;
525 } 525 }