]> asedeno.scripts.mit.edu Git - linux.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)
commit636a415bcc7f4fd020ece8fd5fc648c4cef19c34
treebc9190781b7d009e331c8c76963400a482bdfa15
parent5ffa8518851f1401817c15d2a7eecc0373c26ff9
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