forked from Imagelibrary/seL4
MCS, ARM: Introduce TIMER_OVERHEAD_TICKS
For ARM currently TIMER_PRECISION exists, but that is in microseconds and not fine-grained enough. This is needed to make periodic tasks synchronous with the system clock. If this value is zero every period will be extended with the overhead of taking an interrupt and reading the system clock. To avoid this drift, the configured value should be set to at least the average overhead. See also issue #844. Signed-off-by: Indan Zupancic <Indan.Zupancic@mep-info.com>
This commit is contained in:
committed by
Kent McLeod
parent
3978092885
commit
4a7d08def0
@@ -74,6 +74,9 @@ if(DEFINED CALLED_declare_default_headers)
|
||||
if(NOT DEFINED CONFIGURE_TIMER_PRECISION)
|
||||
set(CONFIGURE_TIMER_PRECISION "0")
|
||||
endif()
|
||||
if(NOT DEFINED CONFIGURE_TIMER_OVERHEAD_TICKS)
|
||||
set(CONFIGURE_TIMER_OVERHEAD_TICKS "0")
|
||||
endif()
|
||||
configure_file(
|
||||
src/arch/${KernelArch}/platform_gen.h.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/gen_headers/plat/platform_gen.h @ONLY
|
||||
|
||||
Reference in New Issue
Block a user