[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <HE1PR02MB1387ACCF6EA0EADEE8DE9817D6FE0@HE1PR02MB1387.eurprd02.prod.outlook.com>
Date: Thu, 31 Dec 2015 05:14:34 +0000
From: Noam Camus <noamc@...hip.com>
To: Vineet Gupta <Vineet.Gupta1@...opsys.com>,
"linux-snps-arc@...ts.infradead.org"
<linux-snps-arc@...ts.infradead.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Chris Metcalf" <cmetcalf@...hip.com>,
"daniel.lezcano@...aro.org" <daniel.lezcano@...aro.org>,
"marc.zyngier@....com" <marc.zyngier@....com>
Subject: Re: [PATCH v5 11/20] ARC: IPI: do not use generic IRQ domain
>From: Vineet Gupta <Vineet.Gupta1@...opsys.com>
>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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists