Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225875
b: refs/heads/master
c: b54992f
h: refs/heads/master
i:
  225873: 807b2ff
  225871: 7c88fc4
v: v3
  • Loading branch information
Russell King committed Dec 20, 2010
1 parent 26b6058 commit 6a826e1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a88abd7b48e8ec8084b1252d0f5ebdab43c2508
refs/heads/master: b54992fe1b4bad7b7488d58b8696e4e8974fdab0
8 changes: 8 additions & 0 deletions trunk/arch/arm/include/asm/hardirq.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ typedef struct {
#define __inc_irq_stat(cpu, member) __IRQ_STAT(cpu, member)++
#define __get_irq_stat(cpu, member) __IRQ_STAT(cpu, member)

#ifdef CONFIG_SMP
u64 smp_irq_stat_cpu(unsigned int cpu);
#else
#define smp_irq_stat_cpu(cpu) 0
#endif

#define arch_irq_stat_cpu smp_irq_stat_cpu

#if NR_IRQS > 512
#define HARDIRQ_BITS 10
#elif NR_IRQS > 256
Expand Down
15 changes: 15 additions & 0 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,21 @@ void show_ipi_list(struct seq_file *p, int prec)
}
}

u64 smp_irq_stat_cpu(unsigned int cpu)
{
u64 sum = 0;
int i;

for (i = 0; i < NR_IPI; i++)
sum += __get_irq_stat(cpu, ipi_irqs[i]);

#ifdef CONFIG_LOCAL_TIMERS
sum += __get_irq_stat(cpu, local_timer_irqs);
#endif

return sum;
}

/*
* Timer (local or broadcast) support
*/
Expand Down

0 comments on commit 6a826e1

Please sign in to comment.