mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ANDROID: irqdesc: Export symbol for vendor modules
Export kstat_irqs_usr and kstat_irqs_cpu symbols for vendor loadable modules. These symbols are useful for continuous monitoring of irq stats to detect problems like interrupt storms. 1) kstat_irqs_usr: it helps in getting total interrupt count for an IRQ. 2) kstat_irqs_cpu: it helps in getting per cpu interrupt count for an IRQ. Bug: 177393442 Change-Id: I6f65c5759cd096db391e1c41e4260aa4ebc40fb4 Signed-off-by: Prateek Sood <prsood@codeaurora.org> Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
This commit is contained in:
parent
7eadb0006a
commit
8420cd4a8c
|
|
@ -969,6 +969,7 @@ unsigned int kstat_irqs_cpu(unsigned int irq, int cpu)
|
|||
return desc && desc->kstat_irqs ?
|
||||
*per_cpu_ptr(desc->kstat_irqs, cpu) : 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(kstat_irqs_cpu);
|
||||
|
||||
static bool irq_is_nmi(struct irq_desc *desc)
|
||||
{
|
||||
|
|
@ -1019,3 +1020,4 @@ unsigned int kstat_irqs_usr(unsigned int irq)
|
|||
rcu_read_unlock();
|
||||
return sum;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(kstat_irqs_usr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user