This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 524eb0880 osperf: changes irq_t to irqstat_t
524eb0880 is described below
commit 524eb0880fe584eca2128350f09357e48d6d4c6d
Author: yinshengkai <[email protected]>
AuthorDate: Fri Feb 2 17:56:33 2024 +0800
osperf: changes irq_t to irqstat_t
Signed-off-by: yinshengkai <[email protected]>
---
benchmarks/osperf/osperf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/benchmarks/osperf/osperf.c b/benchmarks/osperf/osperf.c
index 54a578f25..66d24ac3f 100644
--- a/benchmarks/osperf/osperf.c
+++ b/benchmarks/osperf/osperf.c
@@ -131,7 +131,7 @@ static size_t performance_gettime(FAR struct
performance_time_s *result)
static FAR void *pthread_switch_task(FAR void *arg)
{
FAR struct performance_thread_s *perf = arg;
- irq_t flags = enter_critical_section();
+ irqstate_t flags = enter_critical_section();
sem_wait(&perf->sem);
performance_end(&perf->time);
leave_critical_section(flags);
@@ -353,7 +353,7 @@ static void performance_run(const FAR struct
performance_entry_s *item,
for (i = 0; i < count; i++)
{
- irq_t flags = enter_critical_section();
+ irqstate_t flags = enter_critical_section();
size_t time = item->entry();
leave_critical_section(flags);