Re: [BUG] vmalloc, kmalloc - 2.4.x

From: Arjan van de Ven (arjanv@redhat.com)
Date: Mon Feb 03 2003 - 10:22:38 EST


On Mon, 2003-02-03 at 16:13, Grzegorz Jaskiewicz wrote:
> few days ago i started to port driver for our hardware in company from
> windows to linux. It is simple ISA card, which gives me interrupt each
> 8ms. So i can check it state and latch some sort of watchdog on it -
> saying that i am still running (just for security, if system hangs card
> is blocking all inputs/outputs).

forgot to tell you that

    ttimer.expires = jiffies+(HZ/150.0);

you CANNOT use floating point in kernel mode! And that for HZ=100 this
gives you a timer that expires immediatly.

and that
        printk("<1>%d\n", TimerIntrpt);
you shouldn't use <1> in printk strings ever.



-
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/



This archive was generated by hypermail 2b29 : Fri Feb 07 2003 - 22:00:11 EST