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 263a4f8d5a
due to merge conflicts, so add it back with the conflicts resolved.

Bug: 267983545
Change-Id: I494a549734e86f311eb1ea62f15933cf39e1d018
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
Signed-off-by: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
This commit is contained in:
Melody Olvera
2023-08-02 13:01:12 -07:00
committed by Treehugger Robot
parent 379bcf45df
commit 23d6ac62fd
+2
View File
@@ -5,6 +5,7 @@
#include <linux/rcupdate.h>
#include <linux/kobject.h>
#include <linux/mutex.h>
#include <linux/android_vendor.h>
/*
* 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