linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 2/2] s390: fix compile with VIRT_CPU_ACCOUNTING=n.
@ 2006-03-03 18:55 Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2006-03-03 18:55 UTC (permalink / raw)
  To: akpm, jblunck, linux-kernel

From: Jan Blunck <jblunck@suse.de>

[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@suse.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---

 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 {					     \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-03 18:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-03 18:55 [patch 2/2] s390: fix compile with VIRT_CPU_ACCOUNTING=n Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).