summaryrefslogtreecommitdiff
path: root/fs/jffs2
diff options
context:
space:
mode:
authorStuart Wood <stuart.wood@labxtechnologies.com>2008-06-02 16:40:08 -0400
committerWolfgang Denk <wd@denx.de>2008-06-29 19:51:12 +0200
commit86d3273e2b7be3fffb45e20c08535d6ad3aded6b (patch)
treed7bc53c5b652325bc7eb739019081b0f849f5737 /fs/jffs2
parent5744ddc6637fea4f7b911a54a5fa860cb81a5d89 (diff)
downloadu-boot-imx-86d3273e2b7be3fffb45e20c08535d6ad3aded6b.zip
u-boot-imx-86d3273e2b7be3fffb45e20c08535d6ad3aded6b.tar.gz
u-boot-imx-86d3273e2b7be3fffb45e20c08535d6ad3aded6b.tar.bz2
jffs2_1pass.c: add watchdog support
Signed-off-by: Stuart Wood <stuart.wood@labxtechnologies.com>
Diffstat (limited to 'fs/jffs2')
-rw-r--r--fs/jffs2/jffs2_1pass.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
index 7e27ee1..d1423c1 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)
@@ -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 */