]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
microblaze: Add comment about NR_IRQS macro calculation
authorMichal Simek <michal.simek@xilinx.com>
Tue, 8 Aug 2017 14:06:52 +0000 (16:06 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 15 Mar 2018 13:15:55 +0000 (14:15 +0100)
Improve readability of the code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/irq.h

index d785defeeed58e0927c4d5de221c6e623b8590c8..c253239419810ba78e6f2af28c950a96d2988e47 100644 (file)
@@ -9,7 +9,12 @@
 #ifndef _ASM_MICROBLAZE_IRQ_H
 #define _ASM_MICROBLAZE_IRQ_H
 
+/*
+ * Linux IRQ# is currently offset by one to map to the hardware
+ * irq number. So hardware IRQ0 maps to Linux irq 1.
+ */
 #define NR_IRQS                (32 + 1)
+
 #include <asm-generic/irq.h>
 
 struct pt_regs;