Skip to content

Commit

Permalink
[PATCH] build kernel/irq/migration.c only if CONFIG_GENERIC_PENDING_I…
Browse files Browse the repository at this point in the history
…RQ 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>
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Apr 11, 2006
1 parent f6422f1 commit d824e66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion kernel/irq/Makefile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 1 addition & 4 deletions kernel/irq/migration.c
Original file line number Diff line number Diff line change
@@ -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)
{
Expand Down Expand Up @@ -61,5 +60,3 @@ void move_native_irq(int irq)
}
cpus_clear(pending_irq_cpumask[irq]);
}

#endif

0 comments on commit d824e66

Please sign in to comment.