[PATCH] Accurate task and cpu time accounting
Olaf Hering
olh at suse.de
Thu Feb 23 00:35:51 EST 2006
On Wed, Feb 22, Paul Mackeras wrote:
> All of this is conditional on CONFIG_VIRT_CPU_ACCOUNTING. If that is
> not set, we do tick-based approximate accounting as before.
arch/powerpc/kernel/process.c: In function '__switch_to':
arch/powerpc/kernel/process.c:335: error: implicit declaration of function 'account_process_vtime'
arch/powerpc/kernel/process.c:336: error: implicit declaration of function 'calculate_steal_time'
make[1]: *** [arch/powerpc/kernel/process.o] Error 1
This change fixes it. But it will not link 32bit:
kernel/built-in.o(.text+0xbd88): In function `irq_exit':
: undefined reference to `do_softirq'
kernel/built-in.o(.text+0xbde0): In function `local_bh_enable':
: undefined reference to `do_softirq'
kernel/built-in.o(.text+0xbe60): In function `ksoftirqd':
: undefined reference to `do_softirq'
net/built-in.o(.text+0xd6fc): In function `netif_rx_ni':
: undefined reference to `do_softirq'
I think the placement of __ARCH_HAS_DO_SOFTIRQ needs adjustment,
or the code must be moved out of CONFIG_PPC64 in arch/powerpc/kernel/irq.c.
Index: linux-2.6.15/arch/powerpc/kernel/process.c
===================================================================
--- linux-2.6.15.orig/arch/powerpc/kernel/process.c
+++ linux-2.6.15/arch/powerpc/kernel/process.c
@@ -49,8 +49,8 @@
#include <asm/machdep.h>
#ifdef CONFIG_PPC64
#include <asm/firmware.h>
-#include <asm/time.h>
#endif
+#include <asm/time.h>
extern unsigned long _get_SP(void);
More information about the Linuxppc64-dev
mailing list