Changeset 445 for GPL/trunk/lib32/timer.c
- Timestamp:
- Jun 8, 2009, 11:51:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/timer.c
r76 r445 127 127 //****************************************************************************** 128 128 //****************************************************************************** 129 #include <linux/delay.h> 130 void msleep(unsigned int msecs) 131 { 132 unsigned long timeout = ((msecs) * HZ + 999) / 1000; 129 133 134 while (timeout) { 135 set_current_state(TASK_UNINTERRUPTIBLE); 136 timeout = schedule_timeout(timeout); 137 } 138 } 139 140 //****************************************************************************** 141 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.