You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/10/17 15:57:02 UTC
[nuttx] branch releases/12.3 updated: Fix dependencies of CONFIG_SCHED_CPULOAD_ settings
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch releases/12.3
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.3 by this push:
new 598a78186f Fix dependencies of CONFIG_SCHED_CPULOAD_ settings
598a78186f is described below
commit 598a78186f71170d71a055cb0563f811ee56f8f3
Author: Petteri Aimonen <jp...@git.mail.kapsi.fi>
AuthorDate: Tue Sep 26 14:03:17 2023 +0300
Fix dependencies of CONFIG_SCHED_CPULOAD_ settings
CONFIG_SCHED_CPULOAD_EXTCLK doesn't actually require tickless mode.
As long as the platform provides external call to nxsched_process_cpuload(),
it will work in either tickless or ticking mode.
Removed Kconfig dependency.
Instead, CONFIG_SCHED_CPULOAD_SYSCLK does require ticking mode to work,
as documented in CONFIG_SCHED_CPULOAD help text.
Added the dependency to Kconfig also.
---
sched/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sched/Kconfig b/sched/Kconfig
index 6dd1882e3d..40f6a06f4b 100644
--- a/sched/Kconfig
+++ b/sched/Kconfig
@@ -911,6 +911,7 @@ choice
config SCHED_CPULOAD_SYSCLK
bool "Use system clock"
+ depends on !SCHED_TICKLESS
---help---
If this option is enabled, the system clock is used for cpu load
measurement by default.
@@ -929,7 +930,6 @@ config SCHED_CPULOAD_SYSCLK
config SCHED_CPULOAD_EXTCLK
bool "Use external clock"
- depends on SCHED_TICKLESS
---help---
There is a serious issue for the accuracy of measurements if the
system clock is used, however. NuttX threads are often started at