-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: clock_control: Use k_cycle_get_32() for start/sop timestamping
When shell command is enabled, start/stop is timestamped to provide status. Previously, k_uptime_get() was used which locks interrupts and takes more cycles. It was leading to bluetooth failures because clock is controlled in critical path and any delays are unaccepted. Converted to use k_cycle_get_32() which has lockless implementation but is limited to 32 bits which means that status will be invalid if clock state change occurs too far in the past (~36 hours). Note was added to status command help message. Signed-off-by: Krzysztof Chruscinski <[email protected]>
- Loading branch information
1 parent
911616e
commit 0e522cc
Showing
1 changed file
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters