]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Reduce irq overhead when run in qemu
authorHelge Deller <deller@gmx.de>
Mon, 12 Feb 2018 20:43:55 +0000 (21:43 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 2 Mar 2018 09:05:07 +0000 (10:05 +0100)
commita54c1c0e41491d28221d41164ebafcda33f02241
treebc9190781b7d009e331c8c76963400a482bdfa15
parentc2c06b085d8567c6f06fdfdd974910c4c892ac35
parisc: Reduce irq overhead when run in qemu

When run under QEMU, calling mfctl(16) creates some overhead because the
qemu timer has to be scaled and moved into the register. This patch
reduces the number of calls to mfctl(16) by moving the calls out of the
loops.

Additionally, increase the minimal time interval to 8000 cycles instead
of 500 to compensate possible QEMU delays when delivering interrupts.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # 4.14+
arch/parisc/kernel/time.c