Skip to content

Commit

Permalink
Attempting to use arch_timing_freq_get()
Browse files Browse the repository at this point in the history
Signed-off-by: Alp Sayin <[email protected]>
  • Loading branch information
alpsayin committed Jun 29, 2023
1 parent af9c016 commit ce28fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/coop_synchronization/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void helloLoop(const char *my_name, struct k_sem *my_sem,
* be preemtable inside the busy wait. But the point of this sample
* is not to be preempted by timers (nor UART if possible).
*/
for (int i = 0; i < 10000000; i++) {
for (int i = 0; i < arch_timing_freq_get(); i++) {
arch_nop();
}

Expand Down

0 comments on commit ce28fb4

Please sign in to comment.