mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[PATCH] isdn: fix-up schedule_timeout() usage
Use schedule_timeout_interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Cc: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4de4ebc6d8
commit
24763c48a3
5 changed files with 7 additions and 14 deletions
|
@ -529,8 +529,7 @@ static int identify_board(unsigned long rambase, unsigned int iobase)
|
|||
*/
|
||||
x = 0;
|
||||
while((inb(iobase + FIFOSTAT_OFFSET) & RF_HAS_DATA) && x < 100) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
schedule_timeout(1);
|
||||
schedule_timeout_interruptible(1);
|
||||
x++;
|
||||
}
|
||||
if(x == 100) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue