]> git.dujemihanovic.xyz Git - u-boot.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)
commitd7de5ef629352fe12ad99b6539ba1480b923f31e
treef07506e628568757fe3edc858a648e6915d00a51
parentc8d9ff634fc429db5acf2f5386ea937f0fef1ae7
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