diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-11-07 01:01:16 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 07:53:57 -0800 |
commit | 24763c48a3c9cdf0a138038b51a7fca65859cd78 (patch) | |
tree | 01fcb4658b6bf2df08f0d48ef0f58ea215621e63 /drivers/isdn/sc | |
parent | 4de4ebc6d83de6d9739fa24e49ae4a305d5d1268 (diff) | |
download | op-kernel-dev-24763c48a3c9cdf0a138038b51a7fca65859cd78.zip op-kernel-dev-24763c48a3c9cdf0a138038b51a7fca65859cd78.tar.gz |
[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>
Diffstat (limited to 'drivers/isdn/sc')
-rw-r--r-- | drivers/isdn/sc/init.c | 3 | ||||
-rw-r--r-- | drivers/isdn/sc/message.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/isdn/sc/init.c b/drivers/isdn/sc/init.c index 1ebed04..62b7acf 100644 --- a/drivers/isdn/sc/init.c +++ b/drivers/isdn/sc/init.c @@ -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) { diff --git a/drivers/isdn/sc/message.c b/drivers/isdn/sc/message.c index ca204da..0a0fe6b 100644 --- a/drivers/isdn/sc/message.c +++ b/drivers/isdn/sc/message.c @@ -208,8 +208,7 @@ int send_and_receive(int card, tries = 0; /* wait for the response */ while (tries < timeout) { - set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(1); + schedule_timeout_interruptible(1); pr_debug("SAR waiting..\n"); |