1559712b22
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>
20 lines
499 B
Plaintext
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.
|