diff --git a/sched/sched/sched_cpuload.c b/sched/sched/sched_cpuload.c index 59cd5d88c2..a72b0bbf2f 100644 --- a/sched/sched/sched_cpuload.c +++ b/sched/sched/sched_cpuload.c @@ -99,10 +99,6 @@ volatile uint32_t g_cpuload_total; void nxsched_process_taskload_ticks(FAR struct tcb_s *tcb, uint32_t ticks) { - irqstate_t flags; - - flags = enter_critical_section(); - tcb->ticks += ticks; g_cpuload_total += ticks; @@ -128,8 +124,6 @@ void nxsched_process_taskload_ticks(FAR struct tcb_s *tcb, uint32_t ticks) g_cpuload_total = total; } - - leave_critical_section(flags); } /****************************************************************************