[PATCH] workqueue: Fix build on PowerPC

From: Anton Blanchard
Date: Sat Feb 27 2010 - 17:54:20 EST



Fix the following compile error on PowerPC:

include/linux/workqueue.h:66: error: âNR_CPUSâ undeclared here (not in a function)

Signed-off-by: Anton Blanchard <anton@xxxxxxxxx>
---

diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index 66573b8..5d1d9be 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -9,6 +9,7 @@
#include <linux/linkage.h>
#include <linux/bitops.h>
#include <linux/lockdep.h>
+#include <linux/threads.h>
#include <asm/atomic.h>

struct workqueue_struct;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/