]> git.baikalelectronics.ru Git - kernel.git/commit
ARCv2: intc: default all interrupts to priority 1
authorVineet Gupta <vgupta@synopsys.com>
Fri, 30 Sep 2016 23:13:28 +0000 (16:13 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 14 Dec 2016 17:23:46 +0000 (09:23 -0800)
commit45598678d46f696acb3c0d8d52c420cfe6d51cf5
treebf549522914db856961b39e9e12e3fc8654db3d9
parent17facbecfb0f808043205f56ee6052a8e2abe468
ARCv2: intc: default all interrupts to priority 1

ARC HS Cores support configurable multiple interrupt priorities of upto
16 levels. In commit e007b1b43c5c1 ("ARCv2: intc: Allow interruption by
lowest priority interrupt") we switched to 15 which seems a bit
excessive given that there would be rare hardware implementing so many
preemption levels AND running Linux. It would seem that 2 levels will be
more common so switch to 1 as the default priority level. This will be
the "lower" priority level saving 0 for implementing NMI style support.

This scheme also works in systems with more than 2 prioity levels as
well.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/irqflags-arcv2.h
arch/arc/kernel/intc-arcv2.c