Re: IPMI watchdog question

From: Corey Minyard
Date: Mon Aug 02 2004 - 11:54:25 EST


Arkadiusz Miskiewicz wrote:

On Monday 02 of August 2004 17:35, Corey Minyard wrote:


The IPMI watchdog has never supported writing "V" to disable it. It's a
mixed bag with the other watchdogs, some do and some don't, but I can
certainly add that function. Or even better, I'd be happy to take a
patch :).



Like this one (untested beside compilation) below?

btw. other watchdog drivers use:

if(test_and_set_bit(0, &wdt_is_open))
return -EBUSY;

while ipmi does just:
ipmi_wdog_open = 0;

should it also use bit operations or setting =0 is just fine?

You are correct, a test and set operation is really needed.


Patch:

- support disabling watchdog by writting ,,V'' to device.
- unify printk()

Signed-off-by: Arkadiusz Miskiewicz <arekm@xxxxxxxxxxxxx>


Your patch looks very good. Could you add the test and set change, too? Then I think it is ready to go in.

-Corey

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