Changes in kernel/generic/src/sysinfo/stats.c [63e27ef:1ab8539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/stats.c
r63e27ef r1ab8539 34 34 */ 35 35 36 #include <assert.h>37 36 #include <typedefs.h> 38 37 #include <abi/sysinfo.h> … … 46 45 #include <proc/thread.h> 47 46 #include <interrupt.h> 48 #include <stdbool.h>49 47 #include <str.h> 50 48 #include <errno.h> … … 232 230 static void produce_stats_task(task_t *task, stats_task_t *stats_task) 233 231 { 234 assert(interrupts_disabled());235 assert(irq_spinlock_locked(&task->lock));232 ASSERT(interrupts_disabled()); 233 ASSERT(irq_spinlock_locked(&task->lock)); 236 234 237 235 stats_task->task_id = task->taskid; … … 334 332 static void produce_stats_thread(thread_t *thread, stats_thread_t *stats_thread) 335 333 { 336 assert(interrupts_disabled());337 assert(irq_spinlock_locked(&thread->lock));334 ASSERT(interrupts_disabled()); 335 ASSERT(irq_spinlock_locked(&thread->lock)); 338 336 339 337 stats_thread->thread_id = thread->tid;
Note:
See TracChangeset
for help on using the changeset viewer.