From 234faf40fadd97dcf2f59985f43f01dc20e97d34 Mon Sep 17 00:00:00 2001 From: Huang Yiwei Date: Mon, 6 Feb 2023 17:44:15 +0800 Subject: [PATCH] ANDROID: irq: Add vendor data field to struct irq_desc Add vendor data field to struct irq_desc to track the irq count growth, vendor module can store the current count value and calculate the delta in next scan cycle, helpful to enhance irq performance and debug irq related issues. Bug: 267983545 Change-Id: I6b4c12aeaa09ee133918870772833a777190dccc Signed-off-by: Huang Yiwei --- include/linux/irqdesc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index 844a8e30e6de..e4b51ed4211b 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h @@ -5,6 +5,7 @@ #include #include #include +#include /* * Core internal functions to deal with irq descriptors @@ -102,6 +103,7 @@ struct irq_desc { int parent_irq; struct module *owner; const char *name; + ANDROID_VENDOR_DATA(1); } ____cacheline_internodealigned_in_smp; #ifdef CONFIG_SPARSE_IRQ