Re: [PATCH V3 10/26] csky: IRQ handling

2018-09-10 Thread Guo Ren
On Thu, Sep 06, 2018 at 03:39:01PM +0200, Thomas Gleixner wrote: > On Wed, 5 Sep 2018, Guo Ren wrote: > > > +static void (*handle_arch_irq)(struct pt_regs *regs) = NULL; > > + > > +void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) > > +{ > > + if (handle_arch_irq) > > +

Re: [PATCH V3 10/26] csky: IRQ handling

2018-09-10 Thread Guo Ren
On Thu, Sep 06, 2018 at 03:39:01PM +0200, Thomas Gleixner wrote: > On Wed, 5 Sep 2018, Guo Ren wrote: > > > +static void (*handle_arch_irq)(struct pt_regs *regs) = NULL; > > + > > +void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) > > +{ > > + if (handle_arch_irq) > > +

Re: [PATCH V3 10/26] csky: IRQ handling

2018-09-06 Thread Thomas Gleixner
On Wed, 5 Sep 2018, Guo Ren wrote: > +static void (*handle_arch_irq)(struct pt_regs *regs) = NULL; > + > +void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) > +{ > + if (handle_arch_irq) > + return; > + > + handle_arch_irq = handle_irq; > +} Please don't

Re: [PATCH V3 10/26] csky: IRQ handling

2018-09-06 Thread Thomas Gleixner
On Wed, 5 Sep 2018, Guo Ren wrote: > +static void (*handle_arch_irq)(struct pt_regs *regs) = NULL; > + > +void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) > +{ > + if (handle_arch_irq) > + return; > + > + handle_arch_irq = handle_irq; > +} Please don't

[PATCH V3 10/26] csky: IRQ handling

2018-09-05 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/irq.h | 10 arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 31 + 3 files changed, 90 insertions(+) create mode 100644

[PATCH V3 10/26] csky: IRQ handling

2018-09-05 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/irq.h | 10 arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 31 + 3 files changed, 90 insertions(+) create mode 100644