From 23d6ac62fdd6ce1d1a903671524f176163a9c2bd Mon Sep 17 00:00:00 2001 From: Melody Olvera Date: Wed, 2 Aug 2023 13:01:12 -0700 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. This was reverted by commit 263a4f8d5a2c3fda42cdd3fcc1fb622ba3ae2a84 due to merge conflicts, so add it back with the conflicts resolved. Bug: 267983545 Change-Id: I494a549734e86f311eb1ea62f15933cf39e1d018 Signed-off-by: Melody Olvera Signed-off-by: Unnathi Chalicheemala --- include/linux/irqdesc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index fd091c35d572..116bd4a39ae9 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 @@ -117,6 +118,7 @@ struct irq_desc { #ifdef CONFIG_HARDIRQS_SW_RESEND struct hlist_node resend_node; #endif + ANDROID_VENDOR_DATA(1); } ____cacheline_internodealigned_in_smp; #ifdef CONFIG_SPARSE_IRQ