From: Weizhao Ouyang Date: Sat, 7 Oct 2023 10:52:36 +0000 (+0000) Subject: cyclic: doc: Update documentation for CONFIG_CYCLIC_MAX_CPU_TIME_US X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=9e5116433ddb8145f62be448bd1389fd94e2b51c;p=u-boot.git cyclic: doc: Update documentation for CONFIG_CYCLIC_MAX_CPU_TIME_US Cyclic now just print a warning once instead of disabling the cyclic function when the cyclic function upon exceeding CPU time usage. Fixes: ddc8d36a7455 ("cyclic: Don't disable cylic function upon exceeding CPU time") Signed-off-by: Weizhao Ouyang Rephrase the paragraph. Signed-off-by: Heinrich Schuchardt --- diff --git a/doc/develop/cyclic.rst b/doc/develop/cyclic.rst index 43bedacb9f..67831496a7 100644 --- a/doc/develop/cyclic.rst +++ b/doc/develop/cyclic.rst @@ -8,11 +8,11 @@ execute code, e.g. every 100ms. Examples for such functions might be LED blinking etc. The functions that are hooked into this cyclic list should be small timewise as otherwise the execution of the other code that relies on a high frequent polling (e.g. UART rx char ready check) might be -delayed too much. To detect cyclic functions with a too long execution -time, the Kconfig option `CONFIG_CYCLIC_MAX_CPU_TIME_US` is introduced, -which configures the max allowed time for such a cyclic function. If it's -execution time exceeds this time, this cyclic function will get removed -from the cyclic list. +delayed too much. To detect cyclic functions with an excessive execution +time, the Kconfig option `CONFIG_CYCLIC_MAX_CPU_TIME_US` was introduced. +It defines the maximum allowable execution time for such a cyclic function. The +first time the execution of a cyclic function exceeds this interval, a warning +will be displayed indicating the problem to the user. Registering a cyclic function -----------------------------