提交 8ae43ff8 编写于 作者: J Jeff Dike 提交者: Linus Torvalds

[PATCH] uml: mark forward_interrupts as being mode-specific

Mark forward_interrupts as being tt-mode only.
Signed-off-by: NJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 bacf4549
......@@ -6,6 +6,8 @@
#ifndef __IRQ_USER_H__
#define __IRQ_USER_H__
#include "uml-config.h"
struct irq_fd {
struct irq_fd *next;
void *id;
......@@ -26,9 +28,12 @@ extern void free_irq_by_fd(int fd);
extern void reactivate_fd(int fd, int irqnum);
extern void deactivate_fd(int fd, int irqnum);
extern int deactivate_all_fds(void);
extern void forward_interrupts(int pid);
extern int activate_ipi(int fd, int pid);
extern unsigned long irq_lock(void);
extern void irq_unlock(unsigned long flags);
#ifdef CONFIG_MODE_TT
extern void forward_interrupts(int pid);
#endif
#endif
......@@ -350,6 +350,7 @@ int deactivate_all_fds(void)
return 0;
}
#ifdef CONFIG_MODE_TT
void forward_interrupts(int pid)
{
struct irq_fd *irq;
......@@ -371,6 +372,7 @@ void forward_interrupts(int pid)
}
irq_unlock(flags);
}
#endif
/*
* do_IRQ handles all normal device IRQ's (the special
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册