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/icn | |
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/icn')
-rw-r--r-- | drivers/isdn/icn/icn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/icn/icn.c b/drivers/isdn/icn/icn.c index 386df71eee74..6649f8bc9951 100644 --- a/drivers/isdn/icn/icn.c +++ b/drivers/isdn/icn/icn.c | |||
@@ -947,8 +947,7 @@ icn_loadproto(u_char __user * buffer, icn_card * card) | |||
947 | icn_maprelease_channel(card, 0); | 947 | icn_maprelease_channel(card, 0); |
948 | return -EIO; | 948 | return -EIO; |
949 | } | 949 | } |
950 | set_current_state(TASK_INTERRUPTIBLE); | 950 | schedule_timeout_interruptible(10); |
951 | schedule_timeout(10); | ||
952 | } | 951 | } |
953 | } | 952 | } |
954 | writeb(0x20, &sbuf_n); | 953 | writeb(0x20, &sbuf_n); |