summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/watchdog/files
Commit message (Collapse)AuthorAgeFilesLines
* watchdog: Fix case where ${B} != ${S}Richard Purdie2013-03-221-0/+27
| | | | | | (From OE-Core rev: 0ecfe4fd7d89252a7db6c9361fb5674cb098796d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: Upgrade 5.12 -> 5.13Khem Raj2013-03-151-15/+6
| | | | | | | | | | | | Part of ping failure patch is already applied in 5.13 hence refreshed the patch. Tested on x86_64 box (From OE-Core rev: 1834400555d0e2bad73ee472d5991464fec70d53) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: fix ping mode failureRoy.Li2012-07-181-0/+74
[YOCTO #2755] When watchdog works on ping mode, the system will be rebooted since watchdog can not receive the expected ECOREPLY on a setting interval. Ping mode uses a raw socket to send a ECO packet, then uses select() to wait and recvfrom() to receive the ECOREPLY packet, if select() shows the data is ready, and the data is not the expected ECOREPLY, and waiting time is not overdue, it will continue use select() and recvfrom(). Problem is that the raw socket can receive any icmp packets, if we do not set filters, and there are many icmp packets on socket, this program will not find its interested ECOREPLY packet in a special interval, which makes the ping mode fail. Other program is that watchdog sometime can not reach the call of recvfrom to try to receive packets since tv_sec of struct timeval of select parameter is 0. The timeout of select() is the result of ping interval minusing the time of calling gettimeofday spending, when ping interval is 1 second, and the call of gettimeofday() spends several useconds, the tv_sec of struct timeval of select parameter must be 0, at that condition, we should think it is valid of tv_sec of struct timeval of select parameter be 0 (From OE-Core rev: 90f3a90413aa1e08c3206b838dcaee0c1c640dc7) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>