diff options
author | Helge Deller <deller@gmx.de> | 2016-12-20 22:51:10 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2016-12-20 23:39:40 +0300 |
commit | 160494d381373cfa21208484aea4e5db2d3cb0a8 (patch) | |
tree | 436b9f2b94eca1f48a0484c91838219dd022635e /arch/parisc/kernel/processor.c | |
parent | 82cbd568bc5aa4c70f2a694f169d39ddef3b1aba (diff) | |
download | linux-160494d381373cfa21208484aea4e5db2d3cb0a8.tar.xz |
parisc: Optimize timer interrupt function
Restructure the timer interrupt function to better cope with missed timer irqs.
Optimize the calculation when the next interrupt should happen and skip irqs if
they would happen too shortly after exit of the irq function.
The update_process_times() call is done anyway at every timer irq, so we can
safely drop the prof_counter and prof_multiplier variables from the per_cpu
structure.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/kernel/processor.c')
-rw-r--r-- | arch/parisc/kernel/processor.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c index c1c08b5f0cf2..85de47f4eb59 100644 --- a/arch/parisc/kernel/processor.c +++ b/arch/parisc/kernel/processor.c @@ -78,11 +78,6 @@ DEFINE_PER_CPU(struct cpuinfo_parisc, cpu_data); static void init_percpu_prof(unsigned long cpunum) { - struct cpuinfo_parisc *p; - - p = &per_cpu(cpu_data, cpunum); - p->prof_counter = 1; - p->prof_multiplier = 1; } |