No more users outside the core code.
Unified · Split
| @@ -67,7 +67,6 @@ static inline unsigned int kstat_softirqs_cpu(unsigned int irq, int cpu) · 66 unmodified lines | ||
| 67 | 67 | /* |
| 68 | 68 | * Number of interrupts per specific IRQ source, since bootup |
| 69 | 69 | */ |
| 70 | −extern unsigned int kstat_irqs(unsigned int irq); | |
| 71 | 70 | extern unsigned int kstat_irqs_usr(unsigned int irq); |
| 72 | 71 | |
| 73 | 72 | /* |
| @@ -924,15 +924,7 @@ static bool irq_is_nmi(struct irq_desc *desc) · 923 unmodified lines | ||
| 924 | 924 | return desc->istate & IRQS_NMI; |
| 925 | 925 | } |
| 926 | 926 | |
| 927 | −/** | |
| 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) | |
| 927 | +static unsigned int kstat_irqs(unsigned int irq) | |
| 936 | 928 | { |
| 937 | 929 | struct irq_desc *desc = irq_to_desc(irq); |
| 938 | 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 | 947 | * @irq: The interrupt number |
| 956 | 948 | * |
| 957 | 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. | |
| 959 | − * It uses rcu since a concurrent removal of an interrupt descriptor is | |
| 960 | − * observing an rcu grace period before delayed_free_desc()/irq_kobj_release(). | |
| 950 | + * | |
| 951 | + * It uses rcu to protect the access since a concurrent removal of an | |
| 952 | + * interrupt descriptor is observing an rcu grace period before | |
| 953 | + * delayed_free_desc()/irq_kobj_release(). | |
| 961 | 954 | */ |
| 962 | 955 | unsigned int kstat_irqs_usr(unsigned int irq) |
| 963 | 956 | { |