Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105373
b: refs/heads/master
c: 4c182ae
h: refs/heads/master
i:
  105371: 8d4026b
v: v3
  • Loading branch information
WANG Cong authored and Linus Torvalds committed Jul 24, 2008
1 parent 7105459 commit 6c12de8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 38 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: ed62f77bb631bc4a2d8acb0521b720cb55e58183
refs/heads/master: 4c182ae7810f3fe444e666f3f78c209a7c116fdf
2 changes: 0 additions & 2 deletions trunk/arch/um/include/irq_kern.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ extern int um_request_irq(unsigned int irq, int fd, int type,
irq_handler_t handler,
unsigned long irqflags, const char * devname,
void *dev_id);
extern int init_aio_irq(int irq, char *name,
irq_handler_t handler);

#endif

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/um/include/irq_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ struct irq_fd {
enum { IRQ_READ, IRQ_WRITE };

extern void sigio_handler(int sig, struct uml_pt_regs *regs);
extern int activate_fd(int irq, int fd, int type, void *dev_id);
extern void free_irq_by_irq_and_dev(unsigned int irq, void *dev_id);
extern void free_irq_by_fd(int fd);
extern void reactivate_fd(int fd, int irqnum);
extern void deactivate_fd(int fd, int irqnum);
Expand Down
35 changes: 2 additions & 33 deletions trunk/arch/um/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void sigio_handler(int sig, struct uml_pt_regs *regs)

static DEFINE_SPINLOCK(irq_lock);

int activate_fd(int irq, int fd, int type, void *dev_id)
static int activate_fd(int irq, int fd, int type, void *dev_id)
{
struct pollfd *tmp_pfd;
struct irq_fd *new_fd, *irq_fd;
Expand Down Expand Up @@ -216,7 +216,7 @@ static int same_irq_and_dev(struct irq_fd *irq, void *d)
return ((irq->irq == data->irq) && (irq->id == data->dev));
}

void free_irq_by_irq_and_dev(unsigned int irq, void *dev)
static void free_irq_by_irq_and_dev(unsigned int irq, void *dev)
{
struct irq_and_dev data = ((struct irq_and_dev) { .irq = irq,
.dev = dev });
Expand Down Expand Up @@ -403,37 +403,6 @@ void __init init_IRQ(void)
}
}

int init_aio_irq(int irq, char *name, irq_handler_t handler)
{
int fds[2], err;

err = os_pipe(fds, 1, 1);
if (err) {
printk(KERN_ERR "init_aio_irq - os_pipe failed, err = %d\n",
-err);
goto out;
}

err = um_request_irq(irq, fds[0], IRQ_READ, handler,
IRQF_DISABLED | IRQF_SAMPLE_RANDOM, name,
(void *) (long) fds[0]);
if (err) {
printk(KERN_ERR "init_aio_irq - : um_request_irq failed, "
"err = %d\n",
err);
goto out_close;
}

err = fds[1];
goto out;

out_close:
os_close_file(fds[0]);
os_close_file(fds[1]);
out:
return err;
}

/*
* IRQ stack entry and exit:
*
Expand Down

0 comments on commit 6c12de8

Please sign in to comment.