Hello
I am interested to take advantage of the watchdog functionality of fit-pc2 (which is a great computer by the way ).
I am using gentoo with the 2.6.32 kernel, I have enabled CONFIG_SBC_FITPC2_WATCHDOG=y on the config file and installed the watchdog daemon. But the daemon take a lot of CPU, every 5 seconds (approximately) it take 100 % of my CPU.
Is it normal ? I think it's not...
Is there another way to take advantage of the watchdog functionality ?
I have thought of a cron job which would write on the /dev/watchdog each 30 s, with watchdog activated on the bios ... will it work ??
PS : sorry for my bad english
Watchdog take lot of CPU
Re: Watchdog take lot of CPU
I tried :
echo "\0" | sudo tee /dev/watchdog
and it also take 100 % of my CPU for 2 second, as the daemon does.
So the daemon isn't the problème, it's the kernel driver...
Do you have an idea to solve the problem ?
PS : I didn't test this with watchdog activated in the BIOS, but I guess it's not necessary ... isn't it ?
echo "\0" | sudo tee /dev/watchdog
and it also take 100 % of my CPU for 2 second, as the daemon does.
So the daemon isn't the problème, it's the kernel driver...
Do you have an idea to solve the problem ?
PS : I didn't test this with watchdog activated in the BIOS, but I guess it's not necessary ... isn't it ?
Re: Watchdog take lot of CPU
You will need to recompile watchdog driver.
In drivers/watchdog/sbc_fitpc2_wdt.c:
Instead mdelay(100) and mdelay(200) use msleep(100) and msleep(200).
Thanks for info, we will send this update upstream.
In drivers/watchdog/sbc_fitpc2_wdt.c:
Instead mdelay(100) and mdelay(200) use msleep(100) and msleep(200).
Thanks for info, we will send this update upstream.
Compulab's Linux support
Re: Watchdog take lot of CPU
it works
Thanks a lot.
Thanks a lot.