summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/i8259.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/i8259.h')
-rw-r--r--arch/x86/include/asm/i8259.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/i8259.h b/arch/x86/include/asm/i8259.h
index a20365953bf8..ccffa53750a8 100644
--- a/arch/x86/include/asm/i8259.h
+++ b/arch/x86/include/asm/i8259.h
@@ -67,4 +67,9 @@ struct legacy_pic {
extern struct legacy_pic *legacy_pic;
extern struct legacy_pic null_legacy_pic;
+static inline int nr_legacy_irqs(void)
+{
+ return legacy_pic->nr_legacy_irqs;
+}
+
#endif /* _ASM_X86_I8259_H */