[U-Boot-Users] [PATCH]jffs2_1pass.c - Adding watchdog support

Stuart Wood stuart.wood at labxtechnologies.com
Mon Jun 2 22:40:08 CEST 2008


Adds watchdog support.

signed off by Stuart Wood <stuart.wood at labxtechnologies.com>
---

diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
index a330438..9ff8e12 100644
--- a/fs/jffs2/jffs2_1pass.c
+++ b/fs/jffs2/jffs2_1pass.c
@@ -116,6 +116,7 @@
 #include <malloc.h>
 #include <linux/stat.h>
 #include <linux/time.h>
+#include <watchdog.h>

 #if defined(CONFIG_CMD_JFFS2)

@@ -1188,6 +1189,9 @@ jffs2_1pass_build_lists(struct part_info * part)
 			oldoffset = offset;
 		}

+		/* Kick and watch dog, if present */
+		WATCHDOG_RESET();
+
 		node = (struct jffs2_unknown_node *) get_node_mem((u32)part->offset
+ offset);
 		if (node->magic == JFFS2_MAGIC_BITMASK && hdr_crc(node)) {
 			/* if its a fragment add it */




More information about the U-Boot mailing list