Re: [PATCH v5 11/20] ARC: IPI: do not use generic IRQ domain

From: Noam Camus
Date: Thu Dec 31 2015 - 00:14:45 EST


>From: Vineet Gupta <Vineet.Gupta1@xxxxxxxxxxxx>
>Sent: Wednesday, December 30, 2015 12:13 PM

>> generic-y += fb.h
>> generic-y += fcntl.h
>> generic-y += ftrace.h
>> -generic-y += hardirq.h

>So this is going backwards - copy/paste generic code into arch header
I don't understand why you need this !

I need an extra field (ipi_irqs) at struct irq_cpustat_t and I cannot do this at asm-generic.

See below that how I use it to save and show status for each cpu

>> +void arch_do_IPI(unsigned int irq, struct pt_regs *regs)
>> +{
>> + struct pt_regs *old_regs = set_irq_regs(regs);
>> + unsigned int cpu = smp_processor_id();
>> +
>> + __IRQ_STAT(cpu, ipi_irqs)++;
>> +
>> + irq_enter();
>> + do_IPI(irq, NULL);
>> + irq_exit();
>> +
>> + set_irq_regs(old_regs);
>> +}

>WHY ?

Please explain
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/