From 8d2675010aaa51151f76dc7918e3f2e2be4e6374 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 18 Dec 2019 18:10:09 -0500 Subject: [PATCH] kernel: update SCHED_CPU_MASK Kconfig doc Fix reference to APIs and reformat kconfig help message. Signed-off-by: Anas Nashif --- kernel/Kconfig | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/kernel/Kconfig b/kernel/Kconfig index 16c4fb62cfd..7bac90c2bf9 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -126,20 +126,19 @@ config SCHED_CPU_MASK bool "Enable CPU mask affinity/pinning API" depends on SCHED_DUMB help - When true, the app will have access to the - z_thread_*_cpu_mask() APIs which control per-CPU affinity - masks in SMP mode, allowing apps to pin threads to specific - CPUs or disallow threads from running on given CPUs. Note - that as currently implemented, this involves an inherent - O(N) scaling in the number of idle-but-runnable threads, and - thus works only with the DUMB scheduler (as SCALABLE and - MULTIQ would see no benefit). + When true, the application will have access to the + k_thread_cpu_mask_*() APIs which control per-CPU affinity masks in + SMP mode, allowing applications to pin threads to specific CPUs or + disallow threads from running on given CPUs. Note that as currently + implemented, this involves an inherent O(N) scaling in the number of + idle-but-runnable threads, and thus works only with the DUMB + scheduler (as SCALABLE and MULTIQ would see no benefit). - Note that this setting does not technically depend on SMP - and is implemented without it for testing purposes, but for - obvious reasons makes sense as an application API only where - there is more than one CPU. With one CPU, it's just a - higher overhead version of k_thread_start/stop(). + Note that this setting does not technically depend on SMP and is + implemented without it for testing purposes, but for obvious reasons + makes sense as an application API only where there is more than one + CPU. With one CPU, it's just a higher overhead version of + k_thread_start/stop(). config MAIN_STACK_SIZE int "Size of stack for initialization and main thread"