[patch 2/2] s390: fix compile with VIRT_CPU_ACCOUNTING=n.

From: Martin Schwidefsky
Date: Fri Mar 03 2006 - 13:53:10 EST


From: Jan Blunck <jblunck@xxxxxxx>

[patch 2/2] s390: fix compile with VIRT_CPU_ACCOUNTING=n.

When CONFIG_VIRT_CPU_ACCOUNTING is not defined compiling fails with an
undefined reference to account_vtime().

Signed-off-by: Jan Blunck <jblunck@xxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
---

include/asm-s390/system.h | 2 ++
1 files changed, 2 insertions(+)

diff -urpN linux-2.6/include/asm-s390/system.h linux-2.6-patched/include/asm-s390/system.h
--- linux-2.6/include/asm-s390/system.h 2006-03-03 18:52:32.000000000 +0100
+++ linux-2.6-patched/include/asm-s390/system.h 2006-03-03 18:53:21.000000000 +0100
@@ -118,6 +118,8 @@ static inline void sched_cacheflush(void
extern void account_vtime(struct task_struct *);
extern void account_tick_vtime(struct task_struct *);
extern void account_system_vtime(struct task_struct *);
+#else
+#define account_vtime(x) do { /* empty */ } while (0)
#endif

#define finish_arch_switch(prev) do { \
-
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/