This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 2d2b98d73ca6adb0515849a3ed8d6663d8bc681e Author: Marco Casaroli <[email protected]> AuthorDate: Fri Oct 30 19:33:37 2026 +0100 benchmarks/osperf: Fix nxstyle errors. Add the missing blank lines after the declarations. The errors are older than the next change, but nxstyle checks the whole file. No functional change. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- benchmarks/osperf/osperf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/benchmarks/osperf/osperf.c b/benchmarks/osperf/osperf.c index 757fb4216..aa8cfc401 100644 --- a/benchmarks/osperf/osperf.c +++ b/benchmarks/osperf/osperf.c @@ -125,6 +125,7 @@ static void performance_end(FAR struct performance_time_s *result) static size_t performance_gettime(FAR struct performance_time_s *result) { struct timespec ts; + perf_convert(result->end - result->start, &ts); return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; } @@ -137,6 +138,7 @@ static FAR void *pthread_switch_task(FAR void *arg) { FAR struct performance_thread_s *perf = arg; irqstate_t flags = enter_critical_section(); + sem_wait(&perf->sem); performance_end(&perf->time); leave_critical_section(flags); @@ -166,6 +168,7 @@ static size_t pthread_switch_performance(void) static FAR void *pthread_create_task(FAR void *arg) { FAR struct performance_time_s *time = arg; + performance_end(time); return NULL; } @@ -197,6 +200,7 @@ static size_t pthread_create_performance(void) static FAR void *context_switch_task(FAR void *arg) { FAR struct performance_time_s *time = arg; + sched_yield(); performance_end(time); return 0; @@ -224,6 +228,7 @@ static void work_handle(void *arg) { FAR struct performance_time_s *time = ((FAR void **)arg)[2]; FAR sem_t *sem = ((void **)arg)[1]; + performance_end(time); sem_post(sem); } @@ -385,6 +390,7 @@ static void performance_run(const FAR struct performance_entry_s *item, { irqstate_t flags = enter_critical_section(); size_t time = item->entry(); + leave_critical_section(flags); total += time;
