mcs: allow kernel WCET estimate to be scaled

This configuration option allows for building images destined for
simulators, which may not simulate as fast as hardware, to still be
used.
This commit is contained in:
Adrian Danis
2017-08-23 16:48:31 +10:00
committed by Kent Mcleod
parent 2329cd81dc
commit 4768465027
3 changed files with 19 additions and 2 deletions

View File

@@ -442,4 +442,16 @@ config_option(
# of the currently running thread without a capability.
config_set(KernelSetTLSBaseSelf SET_TLS_BASE_SELF ${KernelSetTLSBaseSelf})
config_string(
KernelWcetScale KERNEL_WCET_SCALE
"Multiplier to scale kernel WCET estimate by: the kernel WCET estimate \
is used to ensure a thread has enough budget to get in and out of the \
kernel. When running in a simulator the WCET estimate, which is tuned \
for hardware, may not be sufficient. This option provides a hacky knob \
that can be fiddled with when running inside a simulator."
DEFAULT 1
UNQUOTE
DEPENDS "KernelIsMCS" UNDEF_DISABLED
)
add_config_library(kernel "${configure_string}")