summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Blunck <jblunck@suse.de>2006-03-07 00:42:46 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-07 03:40:44 +0100
commit5c8338904653365bfb92385b38915becb903d8bb (patch)
tree9155246abe2529b1dc5660af8e6f886556dc1b08
parent[PATCH] fix next_timer_interrupt() for hrtimer (diff)
downloadlinux-5c8338904653365bfb92385b38915becb903d8bb.tar.xz
linux-5c8338904653365bfb92385b38915becb903d8bb.zip
[PATCH] 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@suse.de> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--include/asm-s390/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-s390/system.h b/include/asm-s390/system.h
index b2e65e8bf812..6a89dbb03c1e 100644
--- a/include/asm-s390/system.h
+++ b/include/asm-s390/system.h
@@ -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 { \