]> err.no Git - linux-2.6/commitdiff
[SPARC] drivers/sbus: fix-up schedule_timeout() usage
authorNishanth Aravamudan <nacc@us.ibm.com>
Mon, 12 Sep 2005 21:16:17 +0000 (14:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Sep 2005 21:16:17 +0000 (14:16 -0700)
Use schedule_timeout_uninterruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/bpp.c
drivers/sbus/char/vfc_i2c.c

index 87302fb1488545c94e8a5b58aa6822e7e668fb99..ccb20a6f5f36d7593b991d985cb8a478f704368f 100644 (file)
@@ -295,8 +295,7 @@ static unsigned short get_pins(unsigned minor)
 
 static void snooze(unsigned long snooze_time, unsigned minor)
 {
-       set_current_state(TASK_UNINTERRUPTIBLE);
-       schedule_timeout(snooze_time + 1);
+       schedule_timeout_uninterruptible(snooze_time + 1);
 }
 
 static int wait_for(unsigned short set, unsigned short clr,
index 739cad9b19a1f55a98d9c4be5a5d3a08cf43a026..ceec30648f4f65edd8f336536a28f79bdd2c1d4d 100644 (file)
@@ -81,8 +81,7 @@ int vfc_pcf8584_init(struct vfc_dev *dev)
 
 void vfc_i2c_delay_no_busy(struct vfc_dev *dev, unsigned long usecs) 
 {
-       set_current_state(TASK_UNINTERRUPTIBLE);
-       schedule_timeout(usecs_to_jiffies(usecs));
+       schedule_timeout_uninterruptible(usecs_to_jiffies(usecs));
 }
 
 void inline vfc_i2c_delay(struct vfc_dev *dev)