From 7f36f901672ab571b4f141012c04affad84791df Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Thu, 29 Jul 2021 15:46:02 +0100 Subject: [PATCH] kernel: drop unused priority related definitions There are no reference for either K_NUM_PRIORITIES or K_NUM_PRIO_BITMAPS, with the former being dropped in: 1acd8c2996 kernel: Scheduler rewrite Dropping both of these, and also the two comments about extra priorities taking extra RAM space, as those do not seem to apply either. Signed-off-by: Fabio Baltieri --- include/kernel_structs.h | 5 ----- kernel/Kconfig | 8 -------- 2 files changed, 13 deletions(-) diff --git a/include/kernel_structs.h b/include/kernel_structs.h index e4c79a5780a..ee4a8c4b240 100644 --- a/include/kernel_structs.h +++ b/include/kernel_structs.h @@ -34,11 +34,6 @@ extern "C" { #endif -#define K_NUM_PRIORITIES \ - (CONFIG_NUM_COOP_PRIORITIES + CONFIG_NUM_PREEMPT_PRIORITIES + 1) - -#define K_NUM_PRIO_BITMAPS ((K_NUM_PRIORITIES + 31) >> 5) - /* * Bitmask definitions for the struct k_thread.thread_state field. * diff --git a/kernel/Kconfig b/kernel/Kconfig index 3ac77e71b95..cb5c7379a9c 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -41,10 +41,6 @@ config NUM_COOP_PRIORITIES This can be set to zero to disable cooperative scheduling. Cooperative threads always preempt preemptible threads. - Each priority requires an extra 8 bytes of RAM. Each set of 32 extra - total priorities require an extra 4 bytes and add one possible - iteration to loops that search for the next thread to run. - The total number of priorities is NUM_COOP_PRIORITIES + NUM_PREEMPT_PRIORITIES + 1 @@ -63,10 +59,6 @@ config NUM_PREEMPT_PRIORITIES This can be set to 0 to disable preemptible scheduling. - Each priority requires an extra 8 bytes of RAM. Each set of 32 extra - total priorities require an extra 4 bytes and add one possible - iteration to loops that search for the next thread to run. - The total number of priorities is NUM_COOP_PRIORITIES + NUM_PREEMPT_PRIORITIES + 1