powerpc: Implement accurate task and CPU time accounting
[deliverable/linux.git] / arch / powerpc / kernel / process.c
index dd774c3c9302450635d41b84e5298270b75fd77b..1770a066c2176f71afa3e736904d8744bf0e0b84 100644 (file)
@@ -45,9 +45,9 @@
 #include <asm/mmu.h>
 #include <asm/prom.h>
 #include <asm/machdep.h>
+#include <asm/time.h>
 #ifdef CONFIG_PPC64
 #include <asm/firmware.h>
-#include <asm/time.h>
 #endif
 
 extern unsigned long _get_SP(void);
@@ -328,6 +328,11 @@ struct task_struct *__switch_to(struct task_struct *prev,
 #endif
 
        local_irq_save(flags);
+
+       account_system_vtime(current);
+       account_process_vtime(current);
+       calculate_steal_time();
+
        last = _switch(old_thread, new_thread);
 
        local_irq_restore(flags);
This page took 0.025262 seconds and 5 git commands to generate.