[PATCH] Provide refrigerator support for irda

From: Neil Brown (neilb@cse.unsw.edu.au)
Date: Tue Jun 24 2003 - 20:56:53 EST


Hi Jean.
 2.5.73/MAINTAINERS: IRDA SUBSYSTEM
doesn't have an "M:" field, so I'm guessing that the P: field is close
enough.

Without this patch, kIrDAd prevents my notebook from entering suspend
mode.

NeilBrown

 ----------- Diffstat output ------------
 ./drivers/net/irda/sir_kthread.c | 3 +++
 1 files changed, 3 insertions(+)

diff ./drivers/net/irda/sir_kthread.c~current~ ./drivers/net/irda/sir_kthread.c
--- ./drivers/net/irda/sir_kthread.c~current~ 2003-06-25 11:50:36.000000000 +1000
+++ ./drivers/net/irda/sir_kthread.c 2003-06-25 11:51:02.000000000 +1000
@@ -166,6 +166,9 @@ static int irda_thread(void *startup)
                         set_task_state(current, TASK_RUNNING);
                 remove_wait_queue(&irda_rq_queue.kick, &wait);
 
+ if (current->flags & PF_FREEZE)
+ refrigerator(PF_IOTHREAD);
+
                 run_irda_queue();
         }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 30 2003 - 22:00:18 EST