[PATCH 3/7] HPET: allow non-power-of-two frequencies

From: Clemens Ladisch
Date: Wed Sep 28 2005 - 02:13:46 EST


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@xxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/