diff options
author | Jan Blunck <jblunck@suse.de> | 2006-03-06 15:42:46 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-06 18:40:44 -0800 |
commit | 5c8338904653365bfb92385b38915becb903d8bb (patch) | |
tree | 9155246abe2529b1dc5660af8e6f886556dc1b08 /include/asm-s390 | |
parent | 69239749e1ac4f3496906aa4267cb9f61ce52c9c (diff) | |
download | kernel_samsung_tuna-5c8338904653365bfb92385b38915becb903d8bb.zip kernel_samsung_tuna-5c8338904653365bfb92385b38915becb903d8bb.tar.gz kernel_samsung_tuna-5c8338904653365bfb92385b38915becb903d8bb.tar.bz2 |
[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>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-s390/system.h b/include/asm-s390/system.h index b2e65e8..6a89dbb 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 { \ |