parisc: Optimize timer interrupt function
authorHelge Deller <deller@gmx.de>
Tue, 20 Dec 2016 19:51:10 +0000 (20:51 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 20 Dec 2016 20:39:40 +0000 (21:39 +0100)
commit160494d381373cfa21208484aea4e5db2d3cb0a8
tree436b9f2b94eca1f48a0484c91838219dd022635e
parent82cbd568bc5aa4c70f2a694f169d39ddef3b1aba
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>
arch/parisc/include/asm/processor.h
arch/parisc/kernel/processor.c
arch/parisc/kernel/time.c