Re: [RFC PATCH 4/5] RISC-V: Move interrupt cause declarations to irq.h

From: Christoph Hellwig
Date: Tue Aug 21 2018 - 03:49:13 EST


On Wed, Aug 15, 2018 at 04:56:16PM -0700, Atish Patra wrote:
> CPU hotplug code in smpboot requires interrupt cause
> to identify the cause of cpu wakeup.
>
> Move the IRQ cause declarations to appropriate header
> file.

asm/irq.h is a header indirectly included by just about every
driver. This is a very bad place for such internal definitions.