[IRDA]: Switching to a workqueue for the SIR work
Since sir_kthread.c pretty much duplicates the workqueue functionality, we'd better switch. The SIR fsm has been merged into sir_dev.c and thus sir_kthread.c is deleted. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Samuel Ortiz <samuel.ortiz@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d94c77b9b5
commit
788252e661
@@ -15,23 +15,14 @@
|
||||
#define IRDA_SIR_H
|
||||
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/workqueue.h>
|
||||
|
||||
#include <net/irda/irda.h>
|
||||
#include <net/irda/irda_device.h> // iobuff_t
|
||||
|
||||
/* FIXME: unify irda_request with sir_fsm! */
|
||||
|
||||
struct irda_request {
|
||||
struct list_head lh_request;
|
||||
unsigned long pending;
|
||||
void (*func)(void *);
|
||||
void *data;
|
||||
struct timer_list timer;
|
||||
};
|
||||
|
||||
struct sir_fsm {
|
||||
struct semaphore sem;
|
||||
struct irda_request rq;
|
||||
struct work_struct work;
|
||||
unsigned state, substate;
|
||||
int param;
|
||||
int result;
|
||||
|
Reference in New Issue
Block a user