diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /arch/powerpc/kernel/process.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'arch/powerpc/kernel/process.c')
| -rw-r--r-- | arch/powerpc/kernel/process.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index c225cf154bfe..1770a066c217 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
| @@ -1,6 +1,4 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * arch/ppc/kernel/process.c | ||
| 3 | * | ||
| 4 | * Derived from "arch/i386/kernel/process.c" | 2 | * Derived from "arch/i386/kernel/process.c" |
| 5 | * Copyright (C) 1995 Linus Torvalds | 3 | * Copyright (C) 1995 Linus Torvalds |
| 6 | * | 4 | * |
| @@ -47,9 +45,9 @@ | |||
| 47 | #include <asm/mmu.h> | 45 | #include <asm/mmu.h> |
| 48 | #include <asm/prom.h> | 46 | #include <asm/prom.h> |
| 49 | #include <asm/machdep.h> | 47 | #include <asm/machdep.h> |
| 48 | #include <asm/time.h> | ||
| 50 | #ifdef CONFIG_PPC64 | 49 | #ifdef CONFIG_PPC64 |
| 51 | #include <asm/firmware.h> | 50 | #include <asm/firmware.h> |
| 52 | #include <asm/time.h> | ||
| 53 | #endif | 51 | #endif |
| 54 | 52 | ||
| 55 | extern unsigned long _get_SP(void); | 53 | extern unsigned long _get_SP(void); |
| @@ -330,6 +328,11 @@ struct task_struct *__switch_to(struct task_struct *prev, | |||
| 330 | #endif | 328 | #endif |
| 331 | 329 | ||
| 332 | local_irq_save(flags); | 330 | local_irq_save(flags); |
| 331 | |||
| 332 | account_system_vtime(current); | ||
| 333 | account_process_vtime(current); | ||
| 334 | calculate_steal_time(); | ||
| 335 | |||
| 333 | last = _switch(old_thread, new_thread); | 336 | last = _switch(old_thread, new_thread); |
| 334 | 337 | ||
| 335 | local_irq_restore(flags); | 338 | local_irq_restore(flags); |
