Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225870
b: refs/heads/master
c: ec405ea
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Dec 20, 2010
1 parent 9c916fd commit a25932c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3fbb087650df130788d8e3ac29875ee56819249
refs/heads/master: ec405ea9fe5fdeb40824edba7082803b3e98f176
2 changes: 2 additions & 0 deletions trunk/arch/arm/include/asm/hardirq.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

typedef struct {
unsigned int __softirq_pending;
#ifdef CONFIG_LOCAL_TIMERS
unsigned int local_timer_irqs;
#endif
} ____cacheline_aligned irq_cpustat_t;

#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ int show_interrupts(struct seq_file *p, void *v)
#endif
#ifdef CONFIG_SMP
show_ipi_list(p);
#endif
#ifdef CONFIG_LOCAL_TIMERS
show_local_irqs(p);
#endif
seq_printf(p, "Err: %10lu\n", irq_err_count);
Expand Down
24 changes: 12 additions & 12 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,18 +403,6 @@ void show_ipi_list(struct seq_file *p)
seq_putc(p, '\n');
}

void show_local_irqs(struct seq_file *p)
{
unsigned int cpu;

seq_printf(p, "LOC: ");

for_each_present_cpu(cpu)
seq_printf(p, "%10u ", irq_stat[cpu].local_timer_irqs);

seq_putc(p, '\n');
}

/*
* Timer (local or broadcast) support
*/
Expand All @@ -441,6 +429,18 @@ asmlinkage void __exception do_local_timer(struct pt_regs *regs)

set_irq_regs(old_regs);
}

void show_local_irqs(struct seq_file *p)
{
unsigned int cpu;

seq_printf(p, "LOC: ");

for_each_present_cpu(cpu)
seq_printf(p, "%10u ", irq_stat[cpu].local_timer_irqs);

seq_putc(p, '\n');
}
#endif

#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
Expand Down

0 comments on commit a25932c

Please sign in to comment.