~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to kernel/test/fpu/sse1.c

  • Committer: Pavel Rimsky
  • Date: 2010-02-20 20:54:53 UTC
  • mfrom: (292 head)
  • mto: This revision was merged to the branch mainline in revision 296.
  • Revision ID: pavel@pavel-laptop-20100220205453-70sim280j709dgp3
Synchronize with head.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
 
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);
114
115
        atomic_set(&threads_ok, 0);
139
140
        thread_sleep(1);
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);
145
146
        }