posix: sched: Add CONFIG_POSIX_PRIORITY_SCHEDULING
Add `CONFIG_POSIX_PRIORITY_SCHEDULING` Kconfig option to select APIs from PSE53 `_POSIX_PRIORITY_SCHEDULING` option group. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
This commit is contained in:
parent
bff6054cb8
commit
b184fc3a62
|
@ -52,7 +52,7 @@ Minimal Realtime System Profile (PSE51)
|
|||
_POSIX_THREAD_CPUTIME, -1,
|
||||
_POSIX_THREAD_PRIO_INHERIT, 200809L, :kconfig:option:`CONFIG_PTHREAD_MUTEX`
|
||||
_POSIX_THREAD_PRIO_PROTECT, -1,
|
||||
_POSIX_THREAD_PRIORITY_SCHEDULING, -1,
|
||||
_POSIX_THREAD_PRIORITY_SCHEDULING, -1, :kconfig:option:`CONFIG_POSIX_PRIORITY_SCHEDULING` (will fail with ``ENOSYS``:ref:`†<posix_undefined_behaviour>`)
|
||||
_POSIX_THREAD_SPORADIC_SERVER, -1,
|
||||
_POSIX_TIMEOUTS, 200809L, :kconfig:option:`CONFIG_PTHREAD_IPC`
|
||||
_POSIX_TIMERS, 200809L, :kconfig:option:`CONFIG_POSIX_CLOCK`
|
||||
|
|
|
@ -87,7 +87,7 @@ POSIX System Interfaces
|
|||
:ref:`_POSIX_MESSAGE_PASSING<posix_option_message_passing>`, 200809L, :kconfig:option:`CONFIG_POSIX_MQUEUE`
|
||||
_POSIX_MONOTONIC_CLOCK, 200809L, :kconfig:option:`CONFIG_POSIX_CLOCK`
|
||||
_POSIX_PRIORITIZED_IO, -1,
|
||||
:ref:`_POSIX_PRIORITY_SCHEDULING<posix_option_priority_scheduling>`, -1, :kconfig:option:`CONFIG_PTHREAD`
|
||||
:ref:`_POSIX_PRIORITY_SCHEDULING<posix_option_priority_scheduling>`, -1, :kconfig:option:`CONFIG_POSIX_PRIORITY_SCHEDULING` (will fail with ``ENOSYS``:ref:`†<posix_undefined_behaviour>`)
|
||||
_POSIX_RAW_SOCKETS, 200809L, :kconfig:option:`CONFIG_NET_SOCKETS`
|
||||
_POSIX_SHARED_MEMORY_OBJECTS, -1,
|
||||
_POSIX_SPAWN, -1,
|
||||
|
|
|
@ -54,7 +54,7 @@ zephyr_library_sources_ifdef(CONFIG_PTHREAD_KEY key.c)
|
|||
zephyr_library_sources_ifdef(CONFIG_PTHREAD_MUTEX mutex.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_PTHREAD pthread.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC rwlock.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC sched.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_PRIORITY_SCHEDULING sched.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC semaphore.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_PTHREAD_SPINLOCK spinlock.c)
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ source "lib/posix/Kconfig.limits"
|
|||
source "lib/posix/Kconfig.mqueue"
|
||||
source "lib/posix/Kconfig.mutex"
|
||||
source "lib/posix/Kconfig.pthread"
|
||||
source "lib/posix/Kconfig.sched"
|
||||
source "lib/posix/Kconfig.semaphore"
|
||||
source "lib/posix/Kconfig.signal"
|
||||
source "lib/posix/Kconfig.spinlock"
|
||||
|
|
11
lib/posix/Kconfig.sched
Normal file
11
lib/posix/Kconfig.sched
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Copyright (c) 2023 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config POSIX_PRIORITY_SCHEDULING
|
||||
bool "_POSIX_PRIORITY_SCHEDULING API support"
|
||||
default y if PTHREAD
|
||||
default y if POSIX_API
|
||||
depends on PTHREAD
|
||||
help
|
||||
This enables POSIX scheduling APIs (_POSIX_PRIORITY_SCHEDULING).
|
|
@ -4,6 +4,7 @@ CONFIG_MAX_PTHREAD_COUNT=10
|
|||
CONFIG_ZTEST=y
|
||||
CONFIG_SEM_VALUE_MAX=32767
|
||||
CONFIG_POSIX_MQUEUE=y
|
||||
CONFIG_POSIX_PRIORITY_SCHEDULING=y
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
CONFIG_MAX_THREAD_BYTES=4
|
||||
CONFIG_THREAD_NAME=y
|
||||
|
|
Loading…
Reference in a new issue