From: Clemens Ladisch Date: Sun, 30 Oct 2005 23:03:33 +0000 (-0800) Subject: [PATCH] hpet: allow non-power-of-two frequencies X-Git-Tag: v2.6.15-rc1~59^2~15^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=189e2dd1376c1eb2f3a717a15f1ed8c7d0b3811a;p=platform%2Fkernel%2Flinux-3.10.git [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 Acked-by: Bob Picco Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index e3c7c00..85d39ff 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) break; } - if (!arg || (arg & (arg - 1))) { + if (!arg) { err = -EINVAL; break; }