[PATCH] hpet: disallow zero interrupt frequency
commit9090e6db87e3bdb2a2c187ebc0f9175a9f9e5c6f
authorClemens Ladisch <clemens@ladisch.de>
Sun, 30 Oct 2005 23:03:29 +0000 (30 15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:29 +0000 (30 17:37 -0800)
tree46e4a5a27f9d6c694aec2ffba54f90947e8b0477
parent874ec33ff9ccf3651590697a2c2923b911bf31d0
[PATCH] hpet: disallow zero interrupt frequency

Disallow setting an interrupt frequency of zero (which would result in a
division by zero), and disallow enabling the interrupt when the frequency
hasn't yet been set (which would use an interrupt period of zero).

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/hpet.c