forked from Imagelibrary/seL4
mcs: Add a scheduling context object
This is the first part of the seL4 MCS. This commit:
* adds a scheduling context object. Threads without scheduling
context objects cannot be scheduled.
* replaces tcbTimeSlice with the scheduling context object
* adds seL4_SchedControl caps for each core
* adds seL4_SchedControl_Configure which allows users to configure
amount of ticks a scheduling context has, and set a core for the
scheduling context.
* adds seL4_SchedContext_Bind, Unbind and UnbindObject, which allows
a tcb to be bound to a scheduling context.
This commit is contained in:
14
config.cmake
14
config.cmake
@@ -206,11 +206,23 @@ config_string(
|
||||
UNQUOTE
|
||||
)
|
||||
|
||||
config_string(KernelTimerTickMS TIMER_TICK_MS "Timer tick period in milliseconds" DEFAULT 2 UNQUOTE)
|
||||
config_string(
|
||||
KernelTimerTickMS TIMER_TICK_MS "Timer tick period in milliseconds"
|
||||
DEFAULT 2
|
||||
UNQUOTE UNDEF_DISABLED
|
||||
)
|
||||
config_string(
|
||||
KernelTimeSlice TIME_SLICE "Number of timer ticks until a thread is preempted."
|
||||
DEFAULT 5
|
||||
UNQUOTE
|
||||
DEPENDS "NOT KernelIsMCS" UNDEF_DISABLED
|
||||
)
|
||||
config_string(
|
||||
KernelBootThreadTimeSlice BOOT_THREAD_TIME_SLICE
|
||||
"Number of milliseconds until the boot thread is preempted."
|
||||
DEFAULT 5
|
||||
UNQUOTE
|
||||
DEPENDS "KernelIsMCS" UNDEF_DISABLED
|
||||
)
|
||||
config_string(
|
||||
KernelRetypeFanOutLimit RETYPE_FAN_OUT_LIMIT
|
||||
|
||||
Reference in New Issue
Block a user