Skip to content

Commit

Permalink
[SPARC] drivers/sbus: fix-up schedule_timeout() usage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Aravamudan authored and David S. Miller committed Sep 12, 2005
1 parent 7caaeab commit 074c527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/sbus/char/bpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions drivers/sbus/char/vfc_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 074c527

Please sign in to comment.