[PATCH] cputime (1/6): move call to update_process_times.
From: Martin Schwidefsky <[EMAIL PROTECTED]>
For non-smp kernels the call to update_process_times is done
in the do_timer function. It is more consistent with smp kernels
to move this call to the architecture file which calls do_timer.
Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
diffstat:
arch/alpha/kernel/time.c |3 +++
arch/arm/kernel/time.c |3 +++
arch/arm/mach-iop3xx/iq80310-time.c |3 +++
arch/arm26/kernel/time.c |3 +++
arch/cris/arch-v10/kernel/time.c |3 +++
arch/h8300/kernel/time.c |3 +++
arch/ia64/kernel/time.c |8 +---
arch/m68k/kernel/time.c |3 +++
arch/m68k/sun3/sun3ints.c|3 +++
arch/m68knommu/kernel/time.c |3 +++
arch/mips/au1000/common/time.c |9 +
arch/mips/baget/time.c |3 +++
arch/mips/galileo-boards/ev96100/time.c |3 +++
arch/mips/gt64120/common/time.c |3 +++
arch/mips/kernel/time.c |3 ---
arch/mips/momentum/ocelot_g/gt-irq.c |3 +++
arch/mips/sgi-ip27/ip27-timer.c |2 --
arch/parisc/kernel/time.c|2 ++
arch/ppc/kernel/time.c |3 +++
arch/ppc64/kernel/time.c |3 +++
arch/s390/kernel/time.c |4 +++-
arch/sh/kernel/time.c|3 +++
arch/sh64/kernel/time.c |3 +++
arch/sparc/kernel/pcic.c |3 +++
arch/sparc/kernel/time.c |4
arch/sparc64/kernel/time.c |1 +
arch/um/kernel/time_kern.c |2 --
arch/v850/kernel/time.c |3 +++
arch/x86_64/kernel/time.c|3 +++
include/asm-arm/arch-clps711x/time.h |3 +++
include/asm-arm/arch-integrator/time.h |3 +++
include/asm-arm/arch-l7200/time.h|3 +++
include/asm-i386/mach-default/do_timer.h |3 +++
include/asm-i386/mach-visws/do_timer.h |3 +++
include/asm-i386/mach-voyager/do_timer.h |3 +++
kernel/timer.c |5 -
36 files changed, 98 insertions(+), 20 deletions(-)
diff -urN linux-2.6.8-rc3/arch/alpha/kernel/time.c
linux-2.6.8-s390/arch/alpha/kernel/time.c
--- linux-2.6.8-rc3/arch/alpha/kernel/time.cThu Aug 5 18:39:48 2004
+++ linux-2.6.8-s390/arch/alpha/kernel/time.c Thu Aug 5 18:40:21 2004
@@ -138,6 +138,9 @@
while (nticks > 0) {
do_timer(regs);
+#ifndef CONFIG_SMP
+ update_process_times(user_mode(regs));
+#endif
nticks--;
}
diff -urN linux-2.6.8-rc3/arch/arm/kernel/time.c
linux-2.6.8-s390/arch/arm/kernel/time.c
--- linux-2.6.8-rc3/arch/arm/kernel/time.c Thu Aug 5 18:39:48 2004
+++ linux-2.6.8-s390/arch/arm/kernel/time.c Thu Aug 5 18:40:21 2004
@@ -321,6 +321,9 @@
do_leds();
do_set_rtc();
do_timer(regs);
+#ifndef CONFIG_SMP
+ update_process_times(user_mode(regs));
+#endif
}
void (*init_arch_time)(void);
diff -urN linux-2.6.8-rc3/arch/arm/mach-iop3xx/iq80310-time.c
linux-2.6.8-s390/arch/arm/mach-iop3xx/iq80310-time.c
--- linux-2.6.8-rc3/arch/arm/mach-iop3xx/iq80310-time.c Wed Jun 16 07:19:43 2004
+++ linux-2.6.8-s390/arch/arm/mach-iop3xx/iq80310-time.cThu Aug 5 18:40:21
2004
@@ -97,6 +97,9 @@
*timer_en |= 2;
do_timer(regs);
+#ifndef CONFIG_SMP
+ update_process_times(user_mode(regs));
+#endif
return IRQ_HANDLED;
}
diff -urN linux-2.6.8-rc3/arch/arm26/kernel/time.c
linux-2.6.8-s390/arch/arm26/kernel/time.c
--- linux-2.6.8-rc3/arch/arm26/kernel/time.cWed Jun 16 07:19:42 2004
+++ linux-2.6.8-s390/arch/arm26/kernel/time.c Thu Aug 5 18:40:21 2004
@@ -188,6 +188,9 @@
static irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
do_timer(regs);
+#ifndef CONFIG_SMP
+ update_process_times(user_mode(regs));
+#endif
do_set_rtc(); //FIME - EVERY timer IRQ?
do_profile(regs);
return IRQ_HANDLED; //FIXME - is this right?
diff -urN linux-2.6.8-rc3/arch/cris/arch-v10/kernel/time.c
linux-2.6.8-s390/arch/cris/arch-v10/kernel/time.c
--- linux-2.6.8-rc3/arch/cris/arch-v10/kernel/time.cThu Aug 5 18:39:48 2004
+++ linux-2.6.8-s390/arch/cris/arch-v10/kernel/time.c Thu Aug 5 18:40:21 2004
@@ -227,6 +227,9 @@
/* call the real timer interrupt handler */
do_timer(regs);
+#ifndef CONFIG_SMP
+ update_process_times(user_mode(regs));
+#endif
/*
* If we have an externally synchronized Linux clock, then update
diff -urN linux-2.6.8-rc3/arch/h8300/kernel/time.c
linux-2.6.8-s390/arch/h8300/kernel/time.c
--- linux-2.6.8-rc3/arch/h8300/kernel/time.cWed Jun 16 07:19:10 2004
+++ linux-2.6.8-s390/arch/h8300/kernel/time