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>
This commit is contained in:
parent
70d0a1b6ef
commit
1559712b22
3 changed files with 13 additions and 2 deletions
|
@ -7,3 +7,13 @@ config 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue