clock: Remove CONFIG_TICKLESS_KERNEL_TIME_UNIT_IN_MICRO_SECS
This was only used in a few places just to indirect the already perfectly valid SYS_CLOCK_TICKS_PER_SEC value. There's no reason for these to ever have been kconfig units, and in fact the distinction appears to have introduced a hidden/untested bug in the power subsystem (the two variables were used interchangably, but they were defined in reciprocal units!). Just use "ticks" as our time unit pervasively, and clarify the docs to explain that. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
220d4f8347
commit
393ec71ec3
4 changed files with 5 additions and 20 deletions
|
@ -28,11 +28,7 @@ extern "C" {
|
|||
|
||||
static inline int sys_clock_ticks_per_sec(void)
|
||||
{
|
||||
#ifdef CONFIG_TICKLESS_KERNEL
|
||||
return 1000000 / (CONFIG_TICKLESS_KERNEL_TIME_UNIT_IN_MICRO_SECS);
|
||||
#else
|
||||
return CONFIG_SYS_CLOCK_TICKS_PER_SEC;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TICKLESS_KERNEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue