Messages in this thread Patch in this message |  | | | Date | Wed, 28 Sep 2005 09:12:16 +0200 (MEST) | | From | Clemens Ladisch <> | | Subject | [PATCH 3/7] 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>
Index: linux-2.6.13/drivers/char/hpet.c =================================================================== --- linux-2.6.13.orig/drivers/char/hpet.c 2005-09-27 21:44:11.000000000 +0200 +++ linux-2.6.13/drivers/char/hpet.c 2005-09-27 21:45:12.000000000 +0200 @@ -519,7 +519,7 @@ hpet_ioctl_common(struct hpet_dev *devp, break; } - if (!arg || (arg & (arg - 1))) { + if (!arg) { err = -EINVAL; break; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |