Subversion Repositories HelenOS-historic

Rev

Rev 107 | Rev 239 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 107 Rev 125
Line 103... Line 103...
103
    __u64 sum;
103
    __u64 sum;
104
 
104
 
105
    pri = cpu_priority_high();
105
    pri = cpu_priority_high();
106
    spinlock_lock(&CPU->timeoutlock);
106
    spinlock_lock(&CPU->timeoutlock);
107
    spinlock_lock(&t->lock);
107
    spinlock_lock(&t->lock);
108
   
108
 
109
    if (t->cpu)
109
    if (t->cpu)
110
        panic("t->cpu != 0");
110
        panic("t->cpu != 0");
111
 
111
 
112
    t->cpu = CPU;
112
    t->cpu = CPU;
113
    t->ticks = us2ticks(time);
113
    t->ticks = us2ticks(time);
114
   
114
   
115
    t->handler = f;
115
    t->handler = f;
116
    t->arg = arg;
116
    t->arg = arg;
117
   
117
 
118
    /*
118
    /*
119
     * Insert t into the active timeouts list according to t->ticks.
119
     * Insert t into the active timeouts list according to t->ticks.
120
     */
120
     */
121
    sum = 0;
121
    sum = 0;
122
    l = CPU->timeout_active_head.next;
122
    l = CPU->timeout_active_head.next;