Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225872
b: refs/heads/master
c: cab8c6f
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Dec 20, 2010
1 parent 7c88fc4 commit e5efc85
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 46c48f222f568decb881a552caa1c8f9c96c521e
refs/heads/master: cab8c6f3053c1b147bba825844c8e208f8b3b9f4
3 changes: 3 additions & 0 deletions trunk/arch/arm/include/asm/hardirq.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ typedef struct {
#ifdef CONFIG_LOCAL_TIMERS
unsigned int local_timer_irqs;
#endif
#ifdef CONFIG_SMP
unsigned int ipi_irqs;
#endif
} ____cacheline_aligned irq_cpustat_t;

#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
Expand Down
14 changes: 2 additions & 12 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@
*/
struct secondary_data secondary_data;

/*
* structures for inter-processor calls
*/
struct ipi_data {
unsigned long ipi_count;
};

static DEFINE_PER_CPU(struct ipi_data, ipi_data);

enum ipi_msg_type {
IPI_TIMER = 2,
IPI_RESCHEDULE,
Expand Down Expand Up @@ -398,7 +389,7 @@ void show_ipi_list(struct seq_file *p)
seq_puts(p, "IPI:");

for_each_present_cpu(cpu)
seq_printf(p, " %10lu", per_cpu(ipi_data, cpu).ipi_count);
seq_printf(p, " %10u", __get_irq_stat(cpu, ipi_irqs));

seq_putc(p, '\n');
}
Expand Down Expand Up @@ -513,10 +504,9 @@ static void ipi_cpu_stop(unsigned int cpu)
asmlinkage void __exception do_IPI(int ipinr, struct pt_regs *regs)
{
unsigned int cpu = smp_processor_id();
struct ipi_data *ipi = &per_cpu(ipi_data, cpu);
struct pt_regs *old_regs = set_irq_regs(regs);

ipi->ipi_count++;
__inc_irq_stat(cpu, ipi_irqs);

switch (ipinr) {
case IPI_TIMER:
Expand Down

0 comments on commit e5efc85

Please sign in to comment.