mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
fs/cramfs: use schedule instead of cyclic_run as callback
Prior to commit 29caf9305b
("cyclic: Use schedule() instead of
WATCHDOG_RESET()") we had
/* Currently only needed for fs/cramfs/uncompress.c */
static inline void watchdog_reset_func(void)
{
WATCHDOG_RESET();
}
and .outcb was set to that watchdog_reset_func(). Said commit changed
that .outcb to cyclic_run instead of schedule, which would otherwise
match all the other WATCHDOG_RESET replacements done. As the
HW_WATCHDOG case is not handled by cyclic_run, this seems to be an
oversight.
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
b279aa505d
commit
92957de362
1 changed files with 2 additions and 2 deletions
|
@ -21,9 +21,9 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <cyclic.h>
|
||||
#include <malloc.h>
|
||||
#include <watchdog.h>
|
||||
#include <u-boot/schedule.h>
|
||||
#include <u-boot/zlib.h>
|
||||
|
||||
static z_stream stream;
|
||||
|
@ -63,7 +63,7 @@ int cramfs_uncompress_init (void)
|
|||
stream.avail_in = 0;
|
||||
|
||||
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
|
||||
stream.outcb = (cb_func)cyclic_run;
|
||||
stream.outcb = (cb_func)schedule;
|
||||
#else
|
||||
stream.outcb = Z_NULL;
|
||||
#endif /* CONFIG_HW_WATCHDOG */
|
||||
|
|
Loading…
Add table
Reference in a new issue