[PATCH] build kernel/irq/migration.c only if CONFIG_GENERIC_PENDING_IRQ is set

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Christoph Hellwig 2006-04-10 22:54:04 -07:00 committed by Linus Torvalds
parent f6422f17d3
commit d824e66a9a
2 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,5 @@
obj-y := handle.o manage.o spurious.o migration.o
obj-y := handle.o manage.o spurious.o
obj-$(CONFIG_GENERIC_IRQ_PROBE) += autoprobe.o
obj-$(CONFIG_PROC_FS) += proc.o
obj-$(CONFIG_GENERIC_PENDING_IRQ) += migration.o

View File

@ -1,6 +1,5 @@
#include <linux/irq.h>
#if defined(CONFIG_GENERIC_PENDING_IRQ)
#include <linux/irq.h>
void set_pending_irq(unsigned int irq, cpumask_t mask)
{
@ -61,5 +60,3 @@ void move_native_irq(int irq)
}
cpus_clear(pending_irq_cpumask[irq]);
}
#endif