]> git.baikalelectronics.ru Git - uboot.git/commit
cyclic: use a flag in gd->flags for recursion protection
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 28 Oct 2022 11:50:50 +0000 (13:50 +0200)
committerStefan Roese <sr@denx.de>
Wed, 2 Nov 2022 07:41:20 +0000 (08:41 +0100)
commitbe89253b260a80fc3d13544faa9799b6a6259abd
treef07506e628568757fe3edc858a648e6915d00a51
parent26f7a42735b175c306f1bd42043eccad81e58bf4
cyclic: use a flag in gd->flags for recursion protection

As a preparation for future patches, use a flag in gd->flags rather
than a separate member in (the singleton) struct cyclic_drv to keep
track of whether we're already inside cyclic_run().

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Tim Harvey <tharvey@gateworks.com> # imx8mm-venice-*
common/cyclic.c
include/asm-generic/global_data.h
include/cyclic.h