https://github.com/torvalds/linux
Revision 1b3ed367ce11fb39a345d807ef4168f727236083 authored by Rabin Vincent on 12 June 2015, 08:01:56 UTC, committed by Ralf Baechle on 13 June 2015, 09:33:00 UTC
The GIC chained handlers use do_IRQ() to call the subhandlers. This means that irq_enter() calls get nested, which leads to preempt count looking like we're in nested interrupts, which in turn leads to all system time being accounted as IRQ time in account_system_time(). Fix it by using generic_handle_irq(). Since these same functions are used in some systems (if cpu_has_veic) from a low-level vectored interrupt handler which does not go throught do_IRQ(), we need to do it conditionally. Signed-off-by: Rabin Vincent <rabin.vincent@axis.com> Reviewed-by: Andrew Bresticker <abrestic@chromium.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: linux-mips@linux-mips.org Cc: tglx@linutronix.de Cc: jason@lakedaemon.net Patchwork: https://patchwork.linux-mips.org/patch/10545/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 9cc719a
Tip revision: 1b3ed367ce11fb39a345d807ef4168f727236083 authored by Rabin Vincent on 12 June 2015, 08:01:56 UTC
IRQCHIP: mips-gic: Don't nest calls to do_IRQ()
IRQCHIP: mips-gic: Don't nest calls to do_IRQ()
Tip revision: 1b3ed36
File | Mode | Size |
---|---|---|
kasan | ||
Kconfig | -rw-r--r-- | 21.3 KB |
Kconfig.debug | -rw-r--r-- | 1.2 KB |
Makefile | -rw-r--r-- | 2.6 KB |
backing-dev.c | -rw-r--r-- | 15.0 KB |
balloon_compaction.c | -rw-r--r-- | 6.8 KB |
bootmem.c | -rw-r--r-- | 20.8 KB |
cleancache.c | -rw-r--r-- | 9.9 KB |
cma.c | -rw-r--r-- | 12.1 KB |
cma.h | -rw-r--r-- | 508 bytes |
cma_debug.c | -rw-r--r-- | 4.4 KB |
compaction.c | -rw-r--r-- | 47.3 KB |
debug-pagealloc.c | -rw-r--r-- | 2.6 KB |
debug.c | -rw-r--r-- | 6.5 KB |
dmapool.c | -rw-r--r-- | 13.7 KB |
early_ioremap.c | -rw-r--r-- | 5.4 KB |
fadvise.c | -rw-r--r-- | 3.7 KB |
failslab.c | -rw-r--r-- | 1.3 KB |
filemap.c | -rw-r--r-- | 69.8 KB |
frontswap.c | -rw-r--r-- | 13.4 KB |
gup.c | -rw-r--r-- | 39.0 KB |
highmem.c | -rw-r--r-- | 11.8 KB |
huge_memory.c | -rw-r--r-- | 79.1 KB |
hugetlb.c | -rw-r--r-- | 102.9 KB |
hugetlb_cgroup.c | -rw-r--r-- | 10.4 KB |
hwpoison-inject.c | -rw-r--r-- | 3.3 KB |
init-mm.c | -rw-r--r-- | 619 bytes |
internal.h | -rw-r--r-- | 13.6 KB |
interval_tree.c | -rw-r--r-- | 3.1 KB |
kmemcheck.c | -rw-r--r-- | 2.9 KB |
kmemleak-test.c | -rw-r--r-- | 3.2 KB |
kmemleak.c | -rw-r--r-- | 53.3 KB |
ksm.c | -rw-r--r-- | 63.3 KB |
list_lru.c | -rw-r--r-- | 12.2 KB |
maccess.c | -rw-r--r-- | 1.6 KB |
madvise.c | -rw-r--r-- | 13.8 KB |
memblock.c | -rw-r--r-- | 45.0 KB |
memcontrol.c | -rw-r--r-- | 149.5 KB |
memory-failure.c | -rw-r--r-- | 49.2 KB |
memory.c | -rw-r--r-- | 103.7 KB |
memory_hotplug.c | -rw-r--r-- | 51.1 KB |
mempolicy.c | -rw-r--r-- | 70.4 KB |
mempool.c | -rw-r--r-- | 13.9 KB |
memtest.c | -rw-r--r-- | 3.0 KB |
migrate.c | -rw-r--r-- | 46.7 KB |
mincore.c | -rw-r--r-- | 6.6 KB |
mlock.c | -rw-r--r-- | 19.5 KB |
mm_init.c | -rw-r--r-- | 5.1 KB |
mmap.c | -rw-r--r-- | 89.8 KB |
mmu_context.c | -rw-r--r-- | 1.3 KB |
mmu_notifier.c | -rw-r--r-- | 11.4 KB |
mmzone.c | -rw-r--r-- | 2.3 KB |
mprotect.c | -rw-r--r-- | 10.5 KB |
mremap.c | -rw-r--r-- | 15.1 KB |
msync.c | -rw-r--r-- | 2.6 KB |
nobootmem.c | -rw-r--r-- | 10.7 KB |
nommu.c | -rw-r--r-- | 53.7 KB |
oom_kill.c | -rw-r--r-- | 23.1 KB |
page-writeback.c | -rw-r--r-- | 74.3 KB |
page_alloc.c | -rw-r--r-- | 183.3 KB |
page_counter.c | -rw-r--r-- | 4.8 KB |
page_ext.c | -rw-r--r-- | 10.3 KB |
page_io.c | -rw-r--r-- | 9.4 KB |
page_isolation.c | -rw-r--r-- | 8.7 KB |
page_owner.c | -rw-r--r-- | 7.0 KB |
pagewalk.c | -rw-r--r-- | 7.5 KB |
percpu-km.c | -rw-r--r-- | 2.8 KB |
percpu-vm.c | -rw-r--r-- | 10.0 KB |
percpu.c | -rw-r--r-- | 66.1 KB |
pgtable-generic.c | -rw-r--r-- | 5.1 KB |
process_vm_access.c | -rw-r--r-- | 9.8 KB |
quicklist.c | -rw-r--r-- | 2.4 KB |
readahead.c | -rw-r--r-- | 15.6 KB |
rmap.c | -rw-r--r-- | 43.5 KB |
shmem.c | -rw-r--r-- | 89.2 KB |
slab.c | -rw-r--r-- | 106.9 KB |
slab.h | -rw-r--r-- | 10.4 KB |
slab_common.c | -rw-r--r-- | 26.9 KB |
slob.c | -rw-r--r-- | 15.7 KB |
slub.c | -rw-r--r-- | 127.3 KB |
sparse-vmemmap.c | -rw-r--r-- | 6.0 KB |
sparse.c | -rw-r--r-- | 20.9 KB |
swap.c | -rw-r--r-- | 32.1 KB |
swap_cgroup.c | -rw-r--r-- | 4.6 KB |
swap_state.c | -rw-r--r-- | 12.7 KB |
swapfile.c | -rw-r--r-- | 77.0 KB |
truncate.c | -rw-r--r-- | 23.5 KB |
util.c | -rw-r--r-- | 10.9 KB |
vmacache.c | -rw-r--r-- | 3.1 KB |
vmalloc.c | -rw-r--r-- | 69.0 KB |
vmpressure.c | -rw-r--r-- | 11.4 KB |
vmscan.c | -rw-r--r-- | 109.1 KB |
vmstat.c | -rw-r--r-- | 40.7 KB |
workingset.c | -rw-r--r-- | 13.6 KB |
zbud.c | -rw-r--r-- | 17.9 KB |
zpool.c | -rw-r--r-- | 9.6 KB |
zsmalloc.c | -rw-r--r-- | 45.4 KB |
zswap.c | -rw-r--r-- | 24.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...