Commit a698aef2 authored by Chas Williams's avatar Chas Williams Committed by Stephen Hemminger

[ATM]: use set_current_state(x) (from bellucda@tiscali.it)

parent 1d806ec6
......@@ -77,7 +77,7 @@ static int atmtcp_send_control(struct atm_vcc *vcc,int type,
set_current_state(TASK_UNINTERRUPTIBLE);
schedule();
}
current->state = TASK_RUNNING;
set_current_state(TASK_RUNNING);
remove_wait_queue(vcc->sk->sk_sleep, &wait);
return error;
}
......
......@@ -1722,7 +1722,7 @@ static int __init fs_init (struct fs_dev *dev)
}
/* Try again after 10ms. */
current->state = TASK_UNINTERRUPTIBLE;
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout ((HZ+99)/100);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment