Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113180
b: refs/heads/master
c: e633b7b
h: refs/heads/master
v: v3
  • Loading branch information
Pierre Ossman committed Oct 12, 2008
1 parent 55534dd commit 4ddd911
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04cf585d2902404ed06861c6dc27897100340dba
refs/heads/master: e633b7bcec8e26991d489a11615acf7674efbaf4
13 changes: 9 additions & 4 deletions trunk/drivers/mmc/core/sdio_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Created: June 18, 2007
* Copyright: MontaVista Software Inc.
*
* Copyright 2008 Pierre Ossman
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
Expand Down Expand Up @@ -107,11 +109,14 @@ static int sdio_irq_thread(void *_host)

/*
* Give other threads a chance to run in the presence of
* errors. FIXME: determine if due to card removal and
* possibly exit this thread if so.
* errors.
*/
if (ret < 0)
ssleep(1);
if (ret < 0) {
set_current_state(TASK_INTERRUPTIBLE);
if (!kthread_should_stop())
schedule_timeout(HZ);
set_current_state(TASK_RUNNING);
}

/*
* Adaptive polling frequency based on the assumption
Expand Down

0 comments on commit 4ddd911

Please sign in to comment.