Commit 074c5279 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by David S. Miller

[SPARC] drivers/sbus: fix-up schedule_timeout() usage

Use schedule_timeout_uninterruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7caaeabb
...@@ -295,8 +295,7 @@ static unsigned short get_pins(unsigned minor) ...@@ -295,8 +295,7 @@ static unsigned short get_pins(unsigned minor)
static void snooze(unsigned long snooze_time, unsigned minor) static void snooze(unsigned long snooze_time, unsigned minor)
{ {
set_current_state(TASK_UNINTERRUPTIBLE); schedule_timeout_uninterruptible(snooze_time + 1);
schedule_timeout(snooze_time + 1);
} }
static int wait_for(unsigned short set, unsigned short clr, static int wait_for(unsigned short set, unsigned short clr,
......
...@@ -81,8 +81,7 @@ int vfc_pcf8584_init(struct vfc_dev *dev) ...@@ -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) void vfc_i2c_delay_no_busy(struct vfc_dev *dev, unsigned long usecs)
{ {
set_current_state(TASK_UNINTERRUPTIBLE); schedule_timeout_uninterruptible(usecs_to_jiffies(usecs));
schedule_timeout(usecs_to_jiffies(usecs));
} }
void inline vfc_i2c_delay(struct vfc_dev *dev) void inline vfc_i2c_delay(struct vfc_dev *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment