]> git.sur5r.net Git - u-boot/commitdiff
jffs2_1pass.c: add watchdog support
authorStuart Wood <stuart.wood@labxtechnologies.com>
Mon, 2 Jun 2008 20:40:08 +0000 (16:40 -0400)
committerWolfgang Denk <wd@denx.de>
Sun, 29 Jun 2008 17:51:12 +0000 (19:51 +0200)
Signed-off-by: Stuart Wood <stuart.wood@labxtechnologies.com>
fs/jffs2/jffs2_1pass.c

index 7e27ee18a2a4fcb6b9b83703f7829eff973f0387..d1423c1cdae973b48055c71bbe4dcfcdf14cf293 100644 (file)
 #include <malloc.h>
 #include <linux/stat.h>
 #include <linux/time.h>
+#include <watchdog.h>
 
 #if defined(CONFIG_CMD_JFFS2)
 
@@ -1185,6 +1186,8 @@ jffs2_1pass_build_lists(struct part_info * part)
                        oldoffset = offset;
                }
 
+               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 */