No more users outside the core code.
Showing the changes to kernel (1 of 2 files). Show all
Unified · Split
| @@ -924,15 +924,7 @@ static bool irq_is_nmi(struct irq_desc *desc) · 923 unmodified lines | |||
| 924 | return desc->istate & IRQS_NMI; | 924 | return desc->istate & IRQS_NMI; |
| 925 | } | 925 | } |
| 926 | 926 | ||
| 927 | /** | 927 | static unsigned int kstat_irqs(unsigned int irq) |
| 928 | * kstat_irqs - Get the statistics for an interrupt | ||
| 929 | * @irq: The interrupt number | ||
| 930 | * | ||
| 931 | * Returns the sum of interrupt counts on all cpus since boot for | ||
| 932 | * @irq. The caller must ensure that the interrupt is not removed | ||
| 933 | * concurrently. | ||
| 934 | */ | ||
| 935 | unsigned int kstat_irqs(unsigned int irq) | ||
| 936 | { | 928 | { |
| 937 | struct irq_desc *desc = irq_to_desc(irq); | 929 | struct irq_desc *desc = irq_to_desc(irq); |
| 938 | unsigned int sum = 0; | 930 | unsigned int sum = 0; |
| @@ -951,13 +943,14 @@ unsigned int kstat_irqs(unsigned int irq) · 12 unmodified lines | |||
| 951 | } | 943 | } |
| 952 | 944 | ||
| 953 | /** | 945 | /** |
| 954 | * kstat_irqs_usr - Get the statistics for an interrupt | 946 | * kstat_irqs_usr - Get the statistics for an interrupt from thread context |
| 955 | * @irq: The interrupt number | 947 | * @irq: The interrupt number |
| 956 | * | 948 | * |
| 957 | * Returns the sum of interrupt counts on all cpus since boot for @irq. | 949 | * Returns the sum of interrupt counts on all cpus since boot for @irq. |
| 958 | * Contrary to kstat_irqs() this can be called from any context. | 950 | * |
| 959 | * It uses rcu since a concurrent removal of an interrupt descriptor is | 951 | * It uses rcu to protect the access since a concurrent removal of an |
| 960 | * observing an rcu grace period before delayed_free_desc()/irq_kobj_release(). | 952 | * interrupt descriptor is observing an rcu grace period before |
| 953 | * delayed_free_desc()/irq_kobj_release(). | ||
| 961 | */ | 954 | */ |
| 962 | unsigned int kstat_irqs_usr(unsigned int irq) | 955 | unsigned int kstat_irqs_usr(unsigned int irq) |
| 963 | { | 956 | { |