Changeset aab5e46 in mainline for kernel/test/mm/falloc2.c
- Timestamp:
- 2018-11-03T23:32:39Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 790f3a3
- Parents:
- ef1eab7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/falloc2.c
ref1eab7 raab5e46 43 43 #define THREADS 8 44 44 45 static atomic_t thread_c ount;45 static atomic_t thread_cnt; 46 46 static atomic_t thread_fail; 47 47 … … 56 56 "Unable to allocate frames\n", THREAD->tid, CPU->id); 57 57 atomic_inc(&thread_fail); 58 atomic_dec(&thread_c ount);58 atomic_dec(&thread_cnt); 59 59 return; 60 60 } … … 110 110 TPRINTF("Thread #%" PRIu64 " (cpu%u): Exiting\n", 111 111 THREAD->tid, CPU->id); 112 atomic_dec(&thread_c ount);112 atomic_dec(&thread_cnt); 113 113 } 114 114 115 115 const char *test_falloc2(void) 116 116 { 117 atomic_store(&thread_c ount, THREADS);117 atomic_store(&thread_cnt, THREADS); 118 118 atomic_store(&thread_fail, 0); 119 119 … … 128 128 } 129 129 130 while (atomic_load(&thread_c ount) > 0) {130 while (atomic_load(&thread_cnt) > 0) { 131 131 TPRINTF("Threads left: %zu\n", 132 atomic_load(&thread_c ount));132 atomic_load(&thread_cnt)); 133 133 thread_sleep(1); 134 134 }
Note:
See TracChangeset
for help on using the changeset viewer.