zephyr/subsys/timing/Kconfig
Daniel Leung 1559712b22 timing: add kconfig CONFIG_TIMING_FUNCTIONS_NEED_AT_BOOT
This adds a new kconfig CONFIG_TIMING_FUNCTIONS_NEED_AT_BOOT so
that the timing subsystem can be initialized at boot, instead of
being #ifdef under thread runtime statistics. This will allow
other part of kernel and other subsystems to utilize the timing
functions.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-04-06 16:43:55 -04:00

20 lines
499 B
Plaintext

# Copyright (c) 2020 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
config TIMING_FUNCTIONS
bool "Timing Functions"
help
When enabled, timing related functions are compiled. This is
useful for gathering timing on code execution.
config TIMING_FUNCTIONS_NEED_AT_BOOT
bool
select TIMING_FUNCTIONS
help
Hidden option to indicate that timing functions need to be
initialized at boot.
To be selected by kernel and other subsystems which need
to use timing functions.