Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39141
b: refs/heads/master
c: b104189
h: refs/heads/master
i:
  39139: e4de522
v: v3
  • Loading branch information
Ralf Baechle committed Oct 8, 2006
1 parent db49821 commit ee73ce2
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 25 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: 7bea96fd22a8fd19f90817405b4abe032317a0e3
refs/heads/master: b104189c203a47219e51ab179e50fd0c73ccea3b
2 changes: 1 addition & 1 deletion trunk/arch/ppc/4xx_io/serial_sicc.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ siccuart_rx_chars(struct SICC_info *info, struct pt_regs *regs)
#ifdef SUPPORT_SYSRQ
if (info->sysrq) {
if (ch && time_before(jiffies, info->sysrq)) {
handle_sysrq(ch, regs, NULL);
handle_sysrq(ch, NULL);
info->sysrq = 0;
goto ignore_char;
}
Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/um/drivers/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#define LINE_BUFSIZE 4096

static irqreturn_t line_interrupt(int irq, void *data)
static irqreturn_t line_interrupt(int irq, void *data, struct pt_regs *unused)
{
struct chan *chan = data;
struct line *line = chan->line;
Expand Down Expand Up @@ -364,7 +364,8 @@ void line_unthrottle(struct tty_struct *tty)
reactivate_chan(&line->chan_list, line->driver->read_irq);
}

static irqreturn_t line_write_interrupt(int irq, void *data)
static irqreturn_t line_write_interrupt(int irq, void *data,
struct pt_regs *unused)
{
struct chan *chan = data;
struct line *line = chan->line;
Expand Down Expand Up @@ -711,7 +712,7 @@ struct winch {
struct tty_struct *tty;
};

static irqreturn_t winch_interrupt(int irq, void *data)
static irqreturn_t winch_interrupt(int irq, void *data, struct pt_regs *unused)
{
struct winch *winch = data;
struct tty_struct *tty;
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/um/drivers/mconsole_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ static void mc_work_proc(void *unused)

static DECLARE_WORK(mconsole_work, mc_work_proc, NULL);

static irqreturn_t mconsole_interrupt(int irq, void *dev_id)
static irqreturn_t mconsole_interrupt(int irq, void *dev_id,
struct pt_regs *regs)
{
/* long to avoid size mismatch warnings from gcc */
long fd;
Expand Down Expand Up @@ -673,9 +674,8 @@ static void with_console(struct mc_request *req, void (*proc)(void *),
static void sysrq_proc(void *arg)
{
char *op = arg;
struct pt_regs *old_regs = set_irq_regs(&current->thread.regs);

handle_sysrq(*op, NULL);
set_irq_regs(old_regs);
}

void mconsole_sysrq(struct mc_request *req)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/drivers/net_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static void uml_dev_close(void* dev)
dev_close( (struct net_device *) dev);
}

irqreturn_t uml_net_interrupt(int irq, void *dev_id)
irqreturn_t uml_net_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
struct net_device *dev = dev_id;
struct uml_net_private *lp = dev->priv;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/um/drivers/port_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct connection {
struct port_list *port;
};

static irqreturn_t pipe_interrupt(int irq, void *data)
static irqreturn_t pipe_interrupt(int irq, void *data, struct pt_regs *regs)
{
struct connection *conn = data;
int fd;
Expand Down Expand Up @@ -152,7 +152,7 @@ void port_work_proc(void *unused)

DECLARE_WORK(port_work, port_work_proc, NULL);

static irqreturn_t port_interrupt(int irq, void *data)
static irqreturn_t port_interrupt(int irq, void *data, struct pt_regs *regs)
{
struct port_list *port = data;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static void ubd_handler(void)
do_ubd_request(ubd_queue);
}

static irqreturn_t ubd_intr(int irq, void *dev)
static irqreturn_t ubd_intr(int irq, void *dev, struct pt_regs *unused)
{
ubd_handler();
return(IRQ_HANDLED);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/drivers/xterm_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct xterm_wait {
int new_fd;
};

static irqreturn_t xterm_interrupt(int irq, void *data)
static irqreturn_t xterm_interrupt(int irq, void *data, struct pt_regs *regs)
{
struct xterm_wait *xterm = data;
int fd;
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/um/include/irq_kern.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
#include "asm/ptrace.h"

extern int um_request_irq(unsigned int irq, int fd, int type,
irqreturn_t (*handler)(int, void *),
irqreturn_t (*handler)(int, void *,
struct pt_regs *),
unsigned long irqflags, const char * devname,
void *dev_id);
extern int init_aio_irq(int irq, char *name,
irqreturn_t (*handler)(int, void *));
irqreturn_t (*handler)(int, void *, struct pt_regs *));

#endif

Expand Down
15 changes: 7 additions & 8 deletions trunk/arch/um/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,16 +355,14 @@ void forward_interrupts(int pid)
*/
unsigned int do_IRQ(int irq, union uml_pt_regs *regs)
{
struct pt_regs *old_regs = set_irq_regs((struct pt_regs *)regs);
irq_enter();
__do_IRQ(irq);
irq_exit();
set_irq_regs(old_regs);
return 1;
irq_enter();
__do_IRQ(irq);
irq_exit();
return 1;
}

int um_request_irq(unsigned int irq, int fd, int type,
irqreturn_t (*handler)(int, void *),
irqreturn_t (*handler)(int, void *, struct pt_regs *),
unsigned long irqflags, const char * devname,
void *dev_id)
{
Expand Down Expand Up @@ -425,7 +423,8 @@ void __init init_IRQ(void)
}
}

int init_aio_irq(int irq, char *name, irqreturn_t (*handler)(int, void *))
int init_aio_irq(int irq, char *name, irqreturn_t (*handler)(int, void *,
struct pt_regs *))
{
int fds[2], err;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/sigio.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/* Protected by sigio_lock() called from write_sigio_workaround */
static int sigio_irq_fd = -1;

static irqreturn_t sigio_interrupt(int irq, void *data)
static irqreturn_t sigio_interrupt(int irq, void *data, struct pt_regs *unused)
{
char c;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static inline unsigned long long get_time(void)
return nsecs;
}

irqreturn_t um_timer(int irq, void *dev)
irqreturn_t um_timer(int irq, void *dev, struct pt_regs *regs)
{
unsigned long long nsecs;
unsigned long flags;
Expand Down

0 comments on commit ee73ce2

Please sign in to comment.