diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-11-07 04:01:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:57 -0500 |
commit | 24763c48a3c9cdf0a138038b51a7fca65859cd78 (patch) | |
tree | 01fcb4658b6bf2df08f0d48ef0f58ea215621e63 /drivers/isdn/isdnloop | |
parent | 4de4ebc6d83de6d9739fa24e49ae4a305d5d1268 (diff) |
[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/isdnloop')
-rw-r--r-- | drivers/isdn/isdnloop/isdnloop.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/isdn/isdnloop/isdnloop.c b/drivers/isdn/isdnloop/isdnloop.c index 14e1f8fbc61f..33d339700411 100644 --- a/drivers/isdn/isdnloop/isdnloop.c +++ b/drivers/isdn/isdnloop/isdnloop.c | |||
@@ -1161,12 +1161,9 @@ isdnloop_command(isdn_ctrl * c, isdnloop_card * card) | |||
1161 | if (a) { | 1161 | if (a) { |
1162 | if (!card->leased) { | 1162 | if (!card->leased) { |
1163 | card->leased = 1; | 1163 | card->leased = 1; |
1164 | while (card->ptype == ISDN_PTYPE_UNKNOWN) { | 1164 | while (card->ptype == ISDN_PTYPE_UNKNOWN) |
1165 | set_current_state(TASK_INTERRUPTIBLE); | 1165 | schedule_timeout_interruptible(10); |
1166 | schedule_timeout(10); | 1166 | schedule_timeout_interruptible(10); |
1167 | } | ||
1168 | set_current_state(TASK_INTERRUPTIBLE); | ||
1169 | schedule_timeout(10); | ||
1170 | sprintf(cbuf, "00;FV2ON\n01;EAZ1\n02;EAZ2\n"); | 1167 | sprintf(cbuf, "00;FV2ON\n01;EAZ1\n02;EAZ2\n"); |
1171 | i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); | 1168 | i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); |
1172 | printk(KERN_INFO | 1169 | printk(KERN_INFO |