Changeset 228666c in mainline for kernel/test
- Timestamp:
- 2010-02-20T18:41:53Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b03a666
- Parents:
- bc9da2a
- Location:
- kernel/test
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/fpu1_ia64.c
rbc9da2a r228666c 128 128 char *test_fpu1(void) 129 129 { 130 unsigned int i, total = 0; 130 unsigned int i; 131 atomic_count_t total = 0; 131 132 132 133 waitq_initialize(&can_start); … … 159 160 waitq_wakeup(&can_start, WAKEUP_ALL); 160 161 161 while (atomic_get(&threads_ok) != (long)total) {162 while (atomic_get(&threads_ok) != total) { 162 163 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_ok)); 163 164 thread_sleep(1); -
kernel/test/fpu/fpu1_x86.c
rbc9da2a r228666c 125 125 char *test_fpu1(void) 126 126 { 127 unsigned int i, total = 0; 127 unsigned int i; 128 atomic_count_t total = 0; 128 129 129 130 waitq_initialize(&can_start); … … 156 157 waitq_wakeup(&can_start, WAKEUP_ALL); 157 158 158 while (atomic_get(&threads_ok) != (long)total) {159 while (atomic_get(&threads_ok) != total) { 159 160 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_ok)); 160 161 thread_sleep(1); -
kernel/test/fpu/mips2.c
rbc9da2a r228666c 111 111 char *test_mips2(void) 112 112 { 113 unsigned int i, total = 0; 113 unsigned int i; 114 atomic_count_t total = 0; 114 115 115 116 waitq_initialize(&can_start); … … 138 139 139 140 TPRINTF("ok\n"); 140 141 141 142 thread_sleep(1); 142 143 waitq_wakeup(&can_start, WAKEUP_ALL); 143 144 144 while (atomic_get(&threads_ok) != (long)total) {145 while (atomic_get(&threads_ok) != total) { 145 146 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_ok)); 146 147 thread_sleep(1); -
kernel/test/fpu/sse1.c
rbc9da2a r228666c 109 109 char *test_sse1(void) 110 110 { 111 unsigned int i, total = 0; 111 unsigned int i; 112 atomic_count_t total = 0; 112 113 113 114 waitq_initialize(&can_start); … … 140 141 waitq_wakeup(&can_start, WAKEUP_ALL); 141 142 142 while (atomic_get(&threads_ok) != (long)total) {143 while (atomic_get(&threads_ok) != total) { 143 144 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_ok)); 144 145 thread_sleep(1); -
kernel/test/synch/rwlock5.c
rbc9da2a r228666c 70 70 { 71 71 int i, j, k; 72 long readers, writers; 72 atomic_count_t readers; 73 atomic_count_t writers; 73 74 74 75 waitq_initialize(&can_start); -
kernel/test/synch/semaphore1.c
rbc9da2a r228666c 73 73 { 74 74 int i, j, k; 75 int consumers, producers; 75 atomic_count_t consumers; 76 atomic_count_t producers; 76 77 77 78 waitq_initialize(&can_start); -
kernel/test/thread/thread1.c
rbc9da2a r228666c 55 55 char *test_thread1(void) 56 56 { 57 unsigned int i, total = 0; 57 unsigned int i; 58 atomic_count_t total = 0; 58 59 59 60 atomic_set(&finish, 1); 60 61 atomic_set(&threads_finished, 0); 61 62 62 for (i = 0; i < THREADS; i++) { 63 for (i = 0; i < THREADS; i++) { 63 64 thread_t *t; 64 65 if (!(t = thread_create(threadtest, NULL, TASK, 0, "threadtest", false))) { … … 74 75 75 76 atomic_set(&finish, 0); 76 while (atomic_get(&threads_finished) < ((long) total)) {77 while (atomic_get(&threads_finished) < total) { 77 78 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_finished)); 78 79 thread_sleep(1);
Note:
See TracChangeset
for help on using the changeset viewer.