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